Skip to main content

Decoder

Trait Decoder 

Source
pub trait Decoder: Sized {
    // Required method
    fn from_encoded(encoded: &Encoded) -> Result<Self, Error>;
}
Expand description

Decodes values from the base58-check wire representation.

Required Methods§

Source

fn from_encoded(encoded: &Encoded) -> Result<Self, Error>

Decode Self from an Encoded wrapper.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Decoder for Bytes

Source§

impl Decoder for String

Source§

impl Decoder for Vec<u8>

Implementors§