Struct aliri_base64::Base64UrlRef [−][src]
#[repr(transparent)]pub struct Base64UrlRef(_);
Expand description
Borrowed data to be encoded as URL-safe base64 (no padding)
Encoding alphabet: A
–Z
, a
–z
, 0
–9
, -
, _
Data is borrowed in its raw form. Costs of converting to base64 form are only incurred when serializing or displaying the value.
Implementations
impl Base64UrlRef
[src]
impl Base64UrlRef
[src]pub fn from_mut_slice(raw: &mut [u8]) -> &mut Self
[src]
pub fn from_mut_slice(raw: &mut [u8]) -> &mut Self
[src]Transparently reinterprets the mutable slice as base64
pub const fn encoded_len(&self) -> usize
[src]
pub const fn encoded_len(&self) -> usize
[src]Calculates the expected length of the base64-encoding of this buffer
pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]
pub fn as_mut_slice(&mut self) -> &mut [u8]
[src]Provides mutable access to the underlying slice
Trait Implementations
impl AsRef<Base64UrlRef> for Base64Url
[src]
impl AsRef<Base64UrlRef> for Base64Url
[src]fn as_ref(&self) -> &Base64UrlRef
[src]
fn as_ref(&self) -> &Base64UrlRef
[src]Performs the conversion.
impl Borrow<Base64UrlRef> for Base64Url
[src]
impl Borrow<Base64UrlRef> for Base64Url
[src]fn borrow(&self) -> &Base64UrlRef
[src]
fn borrow(&self) -> &Base64UrlRef
[src]Immutably borrows from an owned value. Read more
impl Debug for Base64UrlRef
[src]
impl Debug for Base64UrlRef
[src]impl Display for Base64UrlRef
[src]
impl Display for Base64UrlRef
[src]impl From<&'_ Base64UrlRef> for Base64Url
[src]
impl From<&'_ Base64UrlRef> for Base64Url
[src]fn from(val: &Base64UrlRef) -> Self
[src]
fn from(val: &Base64UrlRef) -> Self
[src]Performs the conversion.
impl Hash for Base64UrlRef
[src]
impl Hash for Base64UrlRef
[src]impl PartialEq<Base64Url> for Base64UrlRef
[src]
impl PartialEq<Base64Url> for Base64UrlRef
[src]impl PartialEq<Base64UrlRef> for Base64UrlRef
[src]
impl PartialEq<Base64UrlRef> for Base64UrlRef
[src]fn eq(&self, other: &Base64UrlRef) -> bool
[src]
fn eq(&self, other: &Base64UrlRef) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &Base64UrlRef) -> bool
[src]
fn ne(&self, other: &Base64UrlRef) -> bool
[src]This method tests for !=
.
impl PartialEq<Base64UrlRef> for Base64Url
[src]
impl PartialEq<Base64UrlRef> for Base64Url
[src]impl Serialize for Base64UrlRef
[src]
impl Serialize for Base64UrlRef
[src]serde
only.Serialize the underlying byte array as a base64 string
impl ToOwned for Base64UrlRef
[src]
impl ToOwned for Base64UrlRef
[src]fn to_owned(&self) -> Self::Owned
[src]
fn to_owned(&self) -> Self::Owned
[src]Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more