Struct vart::FixedSizeKey
source · pub struct FixedSizeKey<const SIZE: usize> { /* private fields */ }
Implementations§
source§impl<const SIZE: usize> FixedSizeKey<SIZE>
impl<const SIZE: usize> FixedSizeKey<SIZE>
pub fn create_key(src: &[u8]) -> Self
pub fn from_slice(src: &[u8]) -> Self
pub fn from_string(s: &String) -> Self
Trait Implementations§
source§impl<const SIZE: usize> Clone for FixedSizeKey<SIZE>
impl<const SIZE: usize> Clone for FixedSizeKey<SIZE>
source§fn clone(&self) -> FixedSizeKey<SIZE>
fn clone(&self) -> FixedSizeKey<SIZE>
Returns a copy 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 SIZE: usize> Debug for FixedSizeKey<SIZE>
impl<const SIZE: usize> Debug for FixedSizeKey<SIZE>
source§impl<const SIZE: usize> FromStr for FixedSizeKey<SIZE>
impl<const SIZE: usize> FromStr for FixedSizeKey<SIZE>
source§impl<const SIZE: usize> Key for FixedSizeKey<SIZE>
impl<const SIZE: usize> Key for FixedSizeKey<SIZE>
source§impl<const SIZE: usize> Ord for FixedSizeKey<SIZE>
impl<const SIZE: usize> Ord for FixedSizeKey<SIZE>
source§impl<const SIZE: usize> PartialEq for FixedSizeKey<SIZE>
impl<const SIZE: usize> PartialEq for FixedSizeKey<SIZE>
source§impl<const SIZE: usize> PartialOrd for FixedSizeKey<SIZE>
impl<const SIZE: usize> PartialOrd for FixedSizeKey<SIZE>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<const SIZE: usize> Eq for FixedSizeKey<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for FixedSizeKey<SIZE>
impl<const SIZE: usize> RefUnwindSafe for FixedSizeKey<SIZE>
impl<const SIZE: usize> Send for FixedSizeKey<SIZE>
impl<const SIZE: usize> Sync for FixedSizeKey<SIZE>
impl<const SIZE: usize> Unpin for FixedSizeKey<SIZE>
impl<const SIZE: usize> UnwindSafe for FixedSizeKey<SIZE>
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