pub struct Baid64Display<const LEN: usize = 32> { /* private fields */ }Implementations§
Source§impl<const LEN: usize> Baid64Display<LEN>
impl<const LEN: usize> Baid64Display<LEN>
pub fn with( hri: &'static str, payload: [u8; LEN], chunking: bool, chunk_first: usize, chunk_len: usize, prefix: bool, suffix: bool, embed_checksum: bool, ) -> Self
pub fn new(hri: &'static str, payload: [u8; LEN]) -> Self
pub const fn use_hri(self) -> Self
pub const fn use_chunking(self) -> Self
pub const fn use_mnemonic(self) -> Self
pub const fn embed_checksum(self) -> Self
pub const fn human_identifier(&self) -> &'static str
pub fn mnemonic(&self) -> &str
pub const fn checksum(&self) -> [u8; 4]
Trait Implementations§
Source§impl<const LEN: usize> Clone for Baid64Display<LEN>
impl<const LEN: usize> Clone for Baid64Display<LEN>
Source§fn clone(&self) -> Baid64Display<LEN>
fn clone(&self) -> Baid64Display<LEN>
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<const LEN: usize> Debug for Baid64Display<LEN>
impl<const LEN: usize> Debug for Baid64Display<LEN>
Source§impl<const LEN: usize> Display for Baid64Display<LEN>
impl<const LEN: usize> Display for Baid64Display<LEN>
Source§impl<const LEN: usize> Hash for Baid64Display<LEN>
impl<const LEN: usize> Hash for Baid64Display<LEN>
Source§impl<const LEN: usize> Ord for Baid64Display<LEN>
impl<const LEN: usize> Ord for Baid64Display<LEN>
Source§fn cmp(&self, other: &Baid64Display<LEN>) -> Ordering
fn cmp(&self, other: &Baid64Display<LEN>) -> 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<const LEN: usize> PartialEq for Baid64Display<LEN>
impl<const LEN: usize> PartialEq for Baid64Display<LEN>
Source§impl<const LEN: usize> PartialOrd for Baid64Display<LEN>
impl<const LEN: usize> PartialOrd for Baid64Display<LEN>
impl<const LEN: usize> Eq for Baid64Display<LEN>
impl<const LEN: usize> StructuralPartialEq for Baid64Display<LEN>
Auto Trait Implementations§
impl<const LEN: usize> Freeze for Baid64Display<LEN>
impl<const LEN: usize> RefUnwindSafe for Baid64Display<LEN>
impl<const LEN: usize> Send for Baid64Display<LEN>
impl<const LEN: usize> Sync for Baid64Display<LEN>
impl<const LEN: usize> Unpin for Baid64Display<LEN>
impl<const LEN: usize> UnwindSafe for Baid64Display<LEN>
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