pub trait Alphabet:
'static
+ Copy
+ Debug
+ Eq
+ Send
+ Sized
+ Sync {
type Unpadded: Alphabet;
const BASE: u8;
const DECODER: &'static [DecodeStep];
const ENCODER: &'static [EncodeStep];
const PADDED: bool;
// Provided methods
fn decode_3bytes(src: &[u8], dst: &mut [u8]) -> i16 { ... }
fn decode_6bits(src: u8) -> i16 { ... }
fn encode_3bytes(src: &[u8], dst: &mut [u8]) { ... }
fn encode_6bits(src: i16) -> u8 { ... }
}Expand description
Core encoder/decoder functions for a particular Base64 alphabet.
Required Associated Constants§
Sourceconst DECODER: &'static [DecodeStep]
const DECODER: &'static [DecodeStep]
Decoder passes
Sourceconst ENCODER: &'static [EncodeStep]
const ENCODER: &'static [EncodeStep]
Encoder passes
Required Associated Types§
Provided Methods§
Sourcefn decode_3bytes(src: &[u8], dst: &mut [u8]) -> i16
fn decode_3bytes(src: &[u8], dst: &mut [u8]) -> i16
Decode 3 bytes of a Base64 message.
Sourcefn decode_6bits(src: u8) -> i16
fn decode_6bits(src: u8) -> i16
Decode 6-bits of a Base64 message.
Sourcefn encode_3bytes(src: &[u8], dst: &mut [u8])
fn encode_3bytes(src: &[u8], dst: &mut [u8])
Encode 3-bytes of a Base64 message.
Sourcefn encode_6bits(src: i16) -> u8
fn encode_6bits(src: i16) -> u8
Encode 6-bits of a Base64 message.
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.