Struct sp_core::crypto::Ss58AddressFormat
source · [−]pub struct Ss58AddressFormat { /* private fields */ }
Expand description
A custom address format. See also Ss58AddressFormatRegistry
Implementations
An enumeration of unique networks. Some are reserved.
Custom constructor
names of all address formats
All known address formats.
Trait Implementations
Display the name of the address format (not the description).
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
pub fn try_from(
x: &'a str
) -> Result<Ss58AddressFormat, <Ss58AddressFormat as TryFrom<&'a str>>::Error>
pub fn try_from(
x: &'a str
) -> Result<Ss58AddressFormat, <Ss58AddressFormat as TryFrom<&'a str>>::Error>
Performs the conversion.
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Ss58AddressFormat
impl Send for Ss58AddressFormat
impl Sync for Ss58AddressFormat
impl Unpin for Ss58AddressFormat
impl UnwindSafe for Ss58AddressFormat
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
The counterpart to unchecked_from
.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more