pub struct FixedSizeData<const N: usize>(/* private fields */);
Trait Implementations§
Source§impl<const N: usize> Clone for FixedSizeData<N>
impl<const N: usize> Clone for FixedSizeData<N>
Source§fn clone(&self) -> FixedSizeData<N>
fn clone(&self) -> FixedSizeData<N>
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 N: usize> Debug for FixedSizeData<N>
impl<const N: usize> Debug for FixedSizeData<N>
Source§impl<const N: usize> Default for FixedSizeData<N>
impl<const N: usize> Default for FixedSizeData<N>
Source§impl<const N: usize> Deref for FixedSizeData<N>
impl<const N: usize> Deref for FixedSizeData<N>
Source§impl<'de, const N: usize> Deserialize<'de> for FixedSizeData<N>
impl<'de, const N: usize> Deserialize<'de> for FixedSizeData<N>
Source§fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> StdResult<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> From<&FixedSizeData<N>> for FixedBytes<N>
impl<const N: usize> From<&FixedSizeData<N>> for FixedBytes<N>
Source§fn from(data: &FixedSizeData<N>) -> Self
fn from(data: &FixedSizeData<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedSizeData<N>> for Box<[u8; N]>
impl<const N: usize> From<FixedSizeData<N>> for Box<[u8; N]>
Source§fn from(value: FixedSizeData<N>) -> Self
fn from(value: FixedSizeData<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> Hash for FixedSizeData<N>
impl<const N: usize> Hash for FixedSizeData<N>
Source§impl<const N: usize> Hex for FixedSizeData<N>
impl<const N: usize> Hex for FixedSizeData<N>
fn encode_hex(&self) -> String
fn decode_hex(hex: &str) -> Result<Self>
fn encode_hex_with_quotes(&self) -> String
Source§impl<const N: usize> Ord for FixedSizeData<N>
impl<const N: usize> Ord for FixedSizeData<N>
Source§fn cmp(&self, other: &FixedSizeData<N>) -> Ordering
fn cmp(&self, other: &FixedSizeData<N>) -> 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 N: usize> PartialEq for FixedSizeData<N>
impl<const N: usize> PartialEq for FixedSizeData<N>
Source§impl<const N: usize> PartialOrd for FixedSizeData<N>
impl<const N: usize> PartialOrd for FixedSizeData<N>
Source§impl<const N: usize> Serialize for FixedSizeData<N>
impl<const N: usize> Serialize for FixedSizeData<N>
impl<const N: usize> Eq for FixedSizeData<N>
impl<const N: usize> StructuralPartialEq for FixedSizeData<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedSizeData<N>
impl<const N: usize> RefUnwindSafe for FixedSizeData<N>
impl<const N: usize> Send for FixedSizeData<N>
impl<const N: usize> Sync for FixedSizeData<N>
impl<const N: usize> Unpin for FixedSizeData<N>
impl<const N: usize> UnwindSafe for FixedSizeData<N>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
👎Deprecated: use
ToHexExt
insteadEncode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).Source§impl<T> ToHexExt for T
impl<T> ToHexExt for T
Source§fn encode_hex(&self) -> String
fn encode_hex(&self) -> String
Encode the hex strict representing
self
into the result.
Lower case letters are used (e.g. f9b4ca
).Source§fn encode_hex_upper(&self) -> String
fn encode_hex_upper(&self) -> String
Encode the hex strict representing
self
into the result.
Upper case letters are used (e.g. F9B4CA
).Source§fn encode_hex_with_prefix(&self) -> String
fn encode_hex_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0x
.
Lower case letters are used (e.g. 0xf9b4ca
).Source§fn encode_hex_upper_with_prefix(&self) -> String
fn encode_hex_upper_with_prefix(&self) -> String
Encode the hex strict representing
self
into the result with prefix 0X
.
Upper case letters are used (e.g. 0xF9B4CA
).