[−][src]Struct aliri_core::base64::Base64Ref
Borrowed data to be encoded as standard base64
Encoding alphabet: A
–Z
, a
–z
, 0
–9
, +
, /
Padding character: =
Data is borrowed in its raw form. Costs of converting to base64 form are only incurred when serializing or displaying the value.
Implementations
impl Base64Ref
[src]
pub fn from_slice(raw: &[u8]) -> &Self
[src]
Transparently reinterprets the slice as base64
pub fn from_mut_slice(raw: &mut [u8]) -> &mut Self
[src]
Transparently reinterprets the mutable slice as base64
pub fn encoded_len(&self) -> usize
[src]
Calculates the expected length of the base64-encoding of this buffer
pub const fn as_slice(&self) -> &[u8]
[src]
Provides access to the underlying slice
pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]
Provides mutable access to the underlying slice
Trait Implementations
impl AsRef<Base64Ref> for Base64
[src]
impl Borrow<Base64Ref> for Base64
[src]
impl Debug for Base64Ref
[src]
impl Display for Base64Ref
[src]
impl Eq for Base64Ref
[src]
impl<'_> From<&'_ Base64Ref> for Base64
[src]
impl<'a> From<&'a [u8]> for &'a Base64Ref
[src]
impl Hash for Base64Ref
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Base64> for Base64Ref
[src]
impl PartialEq<Base64Ref> for Base64Ref
[src]
impl PartialEq<Base64Ref> for Base64
[src]
impl Serialize for Base64Ref
[src]
impl StructuralEq for Base64Ref
[src]
impl StructuralPartialEq for Base64Ref
[src]
impl ToOwned for Base64Ref
[src]
Auto Trait Implementations
impl RefUnwindSafe for Base64Ref
impl Send for Base64Ref
impl Sync for Base64Ref
impl Unpin for Base64Ref
impl UnwindSafe for Base64Ref
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,