Struct hypersync_format::FixedSizeData
source · 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 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 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(original: FixedSizeData<N>) -> Self
fn from(original: 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§fn eq(&self, other: &FixedSizeData<N>) -> bool
fn eq(&self, other: &FixedSizeData<N>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<const N: usize> PartialOrd for FixedSizeData<N>
impl<const N: usize> PartialOrd for FixedSizeData<N>
source§fn partial_cmp(&self, other: &FixedSizeData<N>) -> Option<Ordering>
fn partial_cmp(&self, other: &FixedSizeData<N>) -> Option<Ordering>
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 moresource§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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).