[][src]Struct aliri_core::base64::Base64Ref

#[repr(transparent)]pub struct Base64Ref(_);

Borrowed data to be encoded as standard base64

Encoding alphabet: AZ, az, 09, +, /

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]

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]

type Owned = Base64

The resulting type after obtaining ownership.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]