Skip to main content

TryFromBase64DecodedBytes

Trait TryFromBase64DecodedBytes 

Source
pub trait TryFromBase64DecodedBytes: Sized + AsRef<[u8]> { }
Expand description

Marker trait for indicating which inner B “bytes” type can be converted from decoded base64 bytes.

This is used as a bound in Base64::parse() to provide a more helpful error message than using a TryFrom<Vec<u8>> implementation.

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 TryFromBase64DecodedBytes for Vec<u8>

Source§

impl<const N: usize> TryFromBase64DecodedBytes for [u8; N]

Implementors§