pub struct Bytes16Key(pub [u8; 16]);Expand description
Built-in fixed-width 16-byte key type.
Tuple Fields§
§0: [u8; 16]Trait Implementations§
Source§impl Clone for Bytes16Key
impl Clone for Bytes16Key
Source§fn clone(&self) -> Bytes16Key
fn clone(&self) -> Bytes16Key
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 Debug for Bytes16Key
impl Debug for Bytes16Key
Source§impl Hash for Bytes16Key
impl Hash for Bytes16Key
Source§impl Ord for Bytes16Key
impl Ord for Bytes16Key
Source§fn cmp(&self, other: &Bytes16Key) -> Ordering
fn cmp(&self, other: &Bytes16Key) -> 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 PartialEq for Bytes16Key
impl PartialEq for Bytes16Key
Source§impl PartialOrd for Bytes16Key
impl PartialOrd for Bytes16Key
Source§impl RecordKey for Bytes16Key
impl RecordKey for Bytes16Key
Source§fn encode_into(&self, out: &mut [u8])
fn encode_into(&self, out: &mut [u8])
Encode this key into the provided output buffer. Read more
Source§fn decode_from(bytes: &[u8]) -> Result<Self, DryIceError>
fn decode_from(bytes: &[u8]) -> Result<Self, DryIceError>
Decode a key from bytes. Read more
impl Copy for Bytes16Key
impl Eq for Bytes16Key
impl StructuralPartialEq for Bytes16Key
Auto Trait Implementations§
impl Freeze for Bytes16Key
impl RefUnwindSafe for Bytes16Key
impl Send for Bytes16Key
impl Sync for Bytes16Key
impl Unpin for Bytes16Key
impl UnsafeUnpin for Bytes16Key
impl UnwindSafe for Bytes16Key
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more