FromBase64Encode

Trait FromBase64Encode 

Source
pub trait FromBase64Encode: Sized {
    // Required method
    fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self;
}
Expand description

Types that can represent a base64 string.

Required Methods§

Source

fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self

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

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 FromBase64Encode for Box<str>

Available on crate feature alloc only.
Source§

fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self

Source§

impl FromBase64Encode for Box<[u8]>

Available on crate feature alloc only.
Source§

fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self

Source§

impl FromBase64Encode for String

Available on crate feature alloc only.
Source§

fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self

Source§

impl FromBase64Encode for Vec<u8>

Available on crate feature alloc only.
Source§

fn from_base64_encode(base64: &Base64, data: &[u8]) -> Self

Implementors§