Trait base_x::alphabet::Alphabet

source ·
pub trait Alphabet {
    // Required methods
    fn encode(self, input: &[u8]) -> String;
    fn decode(self, input: &str) -> Result<Vec<u8>, DecodeError>;
}

Required Methods§

source

fn encode(self, input: &[u8]) -> String

source

fn decode(self, input: &str) -> Result<Vec<u8>, DecodeError>

Implementations on Foreign Types§

source§

impl<'a> Alphabet for &str

source§

fn encode(self, input: &[u8]) -> String

source§

fn decode(self, input: &str) -> Result<Vec<u8>, DecodeError>

source§

impl<'a> Alphabet for &[u8]

source§

fn encode(self, input: &[u8]) -> String

source§

fn decode(self, input: &str) -> Result<Vec<u8>, DecodeError>

Implementors§