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.

Object Safety§

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§