Struct pdotc::Ss58AddressFormat
[−]pub struct Ss58AddressFormat { /* private fields */ }Expand description
A custom address format. See also Ss58AddressFormatRegistry
Implementations
impl Ss58AddressFormat
impl Ss58AddressFormat
An enumeration of unique networks. Some are reserved.
pub fn custom(prefix: u16) -> Ss58AddressFormat
pub fn custom(prefix: u16) -> Ss58AddressFormat
Custom constructor
pub fn all_names() -> &'static [&'static str]
pub fn all_names() -> &'static [&'static str]
names of all address formats
pub fn all() -> &'static [Ss58AddressFormatRegistry]
pub fn all() -> &'static [Ss58AddressFormatRegistry]
All known address formats.
impl Ss58AddressFormat
impl Ss58AddressFormat
pub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Network/AddressType is reserved for future use.
Trait Implementations
impl Clone for Ss58AddressFormat
impl Clone for Ss58AddressFormat
fn 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
impl Debug for Ss58AddressFormat
impl Debug for Ss58AddressFormat
impl Display for Ss58AddressFormat
impl Display for Ss58AddressFormat
Display the name of the address format (not the description).
impl From<Ss58AddressFormat> for String
impl From<Ss58AddressFormat> for String
fn from(x: Ss58AddressFormat) -> String
fn from(x: Ss58AddressFormat) -> String
Converts to this type from the input type.
impl From<Ss58AddressFormatRegistry> for Ss58AddressFormat
impl From<Ss58AddressFormatRegistry> for Ss58AddressFormat
fn from(x: Ss58AddressFormatRegistry) -> Ss58AddressFormat
fn from(x: Ss58AddressFormatRegistry) -> Ss58AddressFormat
Converts to this type from the input type.
impl From<u16> for Ss58AddressFormat
impl From<u16> for Ss58AddressFormat
fn from(prefix: u16) -> Ss58AddressFormat
fn from(prefix: u16) -> Ss58AddressFormat
Converts to this type from the input type.
impl From<u8> for Ss58AddressFormat
impl From<u8> for Ss58AddressFormat
fn from(x: u8) -> Ss58AddressFormat
fn from(x: u8) -> Ss58AddressFormat
Converts to this type from the input type.
impl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
impl PartialEq<Ss58AddressFormat> for Ss58AddressFormat
fn 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
fn ne(&self, other: &Ss58AddressFormat) -> bool
fn ne(&self, other: &Ss58AddressFormat) -> bool
This method tests for !=.
impl<'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.
fn try_from(
x: &'a str
) -> Result<Ss58AddressFormat, <Ss58AddressFormat as TryFrom<&'a str>>::Error>
fn try_from(
x: &'a str
) -> Result<Ss58AddressFormat, <Ss58AddressFormat as TryFrom<&'a str>>::Error>
Performs the conversion.
impl 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.
fn 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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
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
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
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
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcefn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to unchecked_from.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more