Base

Trait Base 

Source
pub trait Base {
    const ALPHABET: Alphabet;

    // Required method
    fn get_index(c: char) -> Option<u8>;

    // Provided methods
    fn decode(input: &str) -> Result<Vec<u8>, DecodeError> { ... }
    fn encode(input: &[u8]) -> String { ... }
}

Required Associated Constants§

Required Methods§

Provided Methods§

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§