pub trait ConvertTo<T>: Send + Sized {
    // Required method
    fn convert(self) -> Result<T, Error>;

    // Provided method
    fn convert_unchecked(self) -> T { ... }
}

Required Methods§

source

fn convert(self) -> Result<T, Error>

Provided Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConvertTo<ParticipationEventId> for &str

source§

impl ConvertTo<ParticipationEventId> for &String

source§

impl ConvertTo<AliasId> for &str

source§

impl ConvertTo<AliasId> for &String

source§

impl ConvertTo<FoundryId> for &str

source§

impl ConvertTo<FoundryId> for &String

source§

impl ConvertTo<NftId> for &str

source§

impl ConvertTo<NftId> for &String

source§

impl ConvertTo<TokenId> for &str

source§

impl ConvertTo<TokenId> for &String

source§

impl ConvertTo<MilestoneId> for &str

source§

impl ConvertTo<MilestoneId> for &String

source§

impl ConvertTo<TransactionId> for &str

source§

impl ConvertTo<TransactionId> for &String

source§

impl ConvertTo<BlockId> for &str

source§

impl ConvertTo<BlockId> for &String

source§

impl<T> ConvertTo<T> for &T
where T: Copy + Send + Sync,

Implementors§

source§

impl<T> ConvertTo<Bech32Address> for T
where T: AsRef<str> + Send,

source§

impl<T> ConvertTo<Hrp> for T
where T: AsRef<str> + Send,

source§

impl<T> ConvertTo<T> for T
where T: Send,