pub trait PureOrWrapped<Regular>: From<Regular> + Into<Option<Regular>> {
    // Required methods
    fn is_pure(&self) -> bool;
    fn is_wrapped_regular(&self) -> bool;
    fn is_wrapped(&self) -> bool;
}

Required Methods§

source

fn is_pure(&self) -> bool

Not any data is wrapped.

source

fn is_wrapped_regular(&self) -> bool

The entity is a wrapped Regular.

source

fn is_wrapped(&self) -> bool

The entity is wrapped.

Implementors§

source§

impl<A> PureOrWrapped<A> for A

PureOrWrapped is reflexive.

source§

impl<AccountId, AssetId: Encode, DEXId: Encode> PureOrWrapped<AccountId> for TechAccountId<AccountId, AssetId, DEXId>where AccountId: IsRepresentation + Clone + Encode + From<[u8; 32]> + Into<[u8; 32]>,

source§

impl<AssetId> PureOrWrapped<AssetId> for TechAssetId<AssetId>