Struct ss58_registry::Ss58AddressFormat
source · [−]pub struct Ss58AddressFormat { /* private fields */ }
Expand description
A custom address format. See also Ss58AddressFormatRegistry
Implementations
sourceimpl Ss58AddressFormat
impl Ss58AddressFormat
An enumeration of unique networks. Some are reserved.
Trait Implementations
sourceimpl Clone for Ss58AddressFormat
impl Clone for Ss58AddressFormat
sourcefn clone(&self) -> Ss58AddressFormat
fn clone(&self) -> Ss58AddressFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Ss58AddressFormat
impl Debug for Ss58AddressFormat
sourceimpl Display for Ss58AddressFormat
impl Display for Ss58AddressFormat
Display the name of the address format (not the description).
sourceimpl From<Ss58AddressFormat> for u16
impl From<Ss58AddressFormat> for u16
sourcefn from(x: Ss58AddressFormat) -> u16
fn from(x: Ss58AddressFormat) -> u16
Converts to this type from the input type.
sourceimpl From<Ss58AddressFormat> for String
impl From<Ss58AddressFormat> for String
sourcefn from(x: Ss58AddressFormat) -> String
fn from(x: Ss58AddressFormat) -> String
Converts to this type from the input type.
sourceimpl From<Ss58AddressFormatRegistry> for Ss58AddressFormat
impl From<Ss58AddressFormatRegistry> for Ss58AddressFormat
sourcefn from(x: Ss58AddressFormatRegistry) -> Ss58AddressFormat
fn from(x: Ss58AddressFormatRegistry) -> Ss58AddressFormat
Converts to this type from the input type.
sourceimpl From<u16> for Ss58AddressFormat
impl From<u16> for Ss58AddressFormat
sourcefn from(prefix: u16) -> Ss58AddressFormat
fn from(prefix: u16) -> Ss58AddressFormat
Converts to this type from the input type.
sourceimpl From<u8> for Ss58AddressFormat
impl From<u8> for Ss58AddressFormat
sourcefn from(x: u8) -> Ss58AddressFormat
fn from(x: u8) -> Ss58AddressFormat
Converts to this type from the input type.
sourceimpl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
impl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
sourcefn eq(&self, other: &Ss58AddressFormat) -> bool
fn eq(&self, other: &Ss58AddressFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Ss58AddressFormat) -> bool
fn ne(&self, other: &Ss58AddressFormat) -> bool
This method tests for !=
.
sourceimpl<'a> TryFrom<&'a str> for Ss58AddressFormat
impl<'a> TryFrom<&'a str> for Ss58AddressFormat
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourceimpl TryFrom<Ss58AddressFormat> for Ss58AddressFormatRegistry
impl TryFrom<Ss58AddressFormat> for Ss58AddressFormatRegistry
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(
x: Ss58AddressFormat
) -> Result<Ss58AddressFormatRegistry, ParseError>
fn try_from(
x: Ss58AddressFormat
) -> Result<Ss58AddressFormatRegistry, ParseError>
Performs the conversion.
impl Copy for Ss58AddressFormat
impl Eq for Ss58AddressFormat
impl StructuralEq for Ss58AddressFormat
impl StructuralPartialEq for Ss58AddressFormat
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more