base64_simd

Trait FromBase64Decode

Source
pub trait FromBase64Decode: Sized {
    // Required method
    fn from_base64_decode(base64: &Base64, data: &[u8]) -> Result<Self, Error>;
}
Expand description

Types that can be decoded from a base64 string.

Required Methods§

Source

fn from_base64_decode(base64: &Base64, data: &[u8]) -> Result<Self, Error>

Decodes a base64 string to bytes and returns the self type.

§Errors

This function returns Err if the content of data is invalid.

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.

Implementations on Foreign Types§

Source§

impl FromBase64Decode for Box<[u8]>

Source§

fn from_base64_decode(base64: &Base64, data: &[u8]) -> Result<Self, Error>

Source§

impl FromBase64Decode for Vec<u8>

Source§

fn from_base64_decode(base64: &Base64, data: &[u8]) -> Result<Self, Error>

Implementors§