pub struct Base32SnowFormatter<T>{ /* private fields */ }
Expand description
A reusable builder that owns the Base32 buffer and formats an ID.
Implementations§
Source§impl<T: Base32SnowExt> Base32SnowFormatter<T>
impl<T: Base32SnowExt> Base32SnowFormatter<T>
pub fn new(id: &T) -> Self
Sourcepub const fn into_inner(self) -> <T::Ty as BeBytes>::Base32Array
pub const fn into_inner(self) -> <T::Ty as BeBytes>::Base32Array
Consumes the builder and returns the raw buffer.
Trait Implementations§
Source§impl<T: Base32SnowExt> AsRef<str> for Base32SnowFormatter<T>
impl<T: Base32SnowExt> AsRef<str> for Base32SnowFormatter<T>
Source§impl<T> Clone for Base32SnowFormatter<T>
impl<T> Clone for Base32SnowFormatter<T>
Source§fn clone(&self) -> Base32SnowFormatter<T>
fn clone(&self) -> Base32SnowFormatter<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for Base32SnowFormatter<T>
impl<T> Debug for Base32SnowFormatter<T>
Source§impl<T: Base32SnowExt> Display for Base32SnowFormatter<T>
impl<T: Base32SnowExt> Display for Base32SnowFormatter<T>
Source§impl<T> Hash for Base32SnowFormatter<T>
impl<T> Hash for Base32SnowFormatter<T>
Source§impl<T> Ord for Base32SnowFormatter<T>
impl<T> Ord for Base32SnowFormatter<T>
Source§fn cmp(&self, other: &Base32SnowFormatter<T>) -> Ordering
fn cmp(&self, other: &Base32SnowFormatter<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: Base32SnowExt> PartialEq<&str> for Base32SnowFormatter<T>
impl<T: Base32SnowExt> PartialEq<&str> for Base32SnowFormatter<T>
Source§impl<T: Base32SnowExt> PartialEq<String> for Base32SnowFormatter<T>
impl<T: Base32SnowExt> PartialEq<String> for Base32SnowFormatter<T>
Source§impl<T> PartialEq for Base32SnowFormatter<T>
impl<T> PartialEq for Base32SnowFormatter<T>
Source§impl<T> PartialOrd for Base32SnowFormatter<T>
impl<T> PartialOrd for Base32SnowFormatter<T>
impl<T> Eq for Base32SnowFormatter<T>
impl<T> StructuralPartialEq for Base32SnowFormatter<T>
Auto Trait Implementations§
impl<T> Freeze for Base32SnowFormatter<T>
impl<T> RefUnwindSafe for Base32SnowFormatter<T>where
<T as Id>::Ty: Sized,
<<T as Id>::Ty as BeBytes>::Base32Array: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Base32SnowFormatter<T>
impl<T> Sync for Base32SnowFormatter<T>
impl<T> Unpin for Base32SnowFormatter<T>
impl<T> UnwindSafe for Base32SnowFormatter<T>
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