Skip to main content

Encoder

Trait Encoder 

Source
pub trait Encoder {
    // Required method
    fn encode(&self) -> Result<Encoded, Error>;
}
Expand description

Encodes values into the base58-check wire representation.

Required Methods§

Source

fn encode(&self) -> Result<Encoded, Error>

Encode this value into an Encoded wrapper.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Encoder for &[u8]

Source§

impl Encoder for &str

Source§

impl Encoder for Bytes

Source§

impl Encoder for String

Source§

impl Encoder for Vec<u8>

Implementors§