Trait polkadot_parachain::primitives::AccountIdConversion [−][src]
pub trait AccountIdConversion<AccountId>: Sized {
fn into_account(&self) -> AccountId;
fn try_from_account(a: &AccountId) -> Option<Self>;
}
Expand description
This type can be converted into and possibly from an [AccountId
] (which itself is generic).
Required methods
fn into_account(&self) -> AccountId
fn into_account(&self) -> AccountId
Convert into an account ID. This is infallible.
fn try_from_account(a: &AccountId) -> Option<Self>
fn try_from_account(a: &AccountId) -> Option<Self>
Try to convert an account ID into this type. Might not succeed.