pub struct Base64 { /* private fields */ }
Expand description
Typesafe base64 encoded bytes with an encoding configuration.
Implementations§
Source§impl Base64
impl Base64
Sourcepub fn new<T: ?Sized + AsRef<[u8]>>(input: &T) -> Self
pub fn new<T: ?Sized + AsRef<[u8]>>(input: &T) -> Self
Takes the same types base64::encode
.
Default encoding is STANDARD
Sourcepub fn with_config<T: ?Sized + AsRef<[u8]>>(input: &T, config: Config) -> Self
pub fn with_config<T: ?Sized + AsRef<[u8]>>(input: &T, config: Config) -> Self
Same as new, just specify a non-STANDARD Config
.
Auto Trait Implementations§
impl Freeze for Base64
impl RefUnwindSafe for Base64
impl Send for Base64
impl Sync for Base64
impl Unpin for Base64
impl UnwindSafe for Base64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more