base_x::alphabet

Trait 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§