pub struct Int<const BITS: usize>(pub [u8; 32]);Expand description
int<M> type mapping
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
source§impl<'de, const BITS: usize> Deserialize<'de> for Int<BITS>
impl<'de, const BITS: usize> Deserialize<'de> for Int<BITS>
source§fn deserialize<D>(
deserializer: D
) -> Result<Int<BITS>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Int<BITS>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<const BITS: usize> PartialEq<Int<BITS>> for Int<BITS>
impl<const BITS: usize> PartialEq<Int<BITS>> for Int<BITS>
source§impl<const BITS: usize> PartialOrd<Int<BITS>> for Int<BITS>
impl<const BITS: usize> PartialOrd<Int<BITS>> for Int<BITS>
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 BITS: usize> Serialize for Int<BITS>
impl<const BITS: usize> Serialize for Int<BITS>
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<const BITS: usize> Copy for Int<BITS>
impl<const BITS: usize> Eq for Int<BITS>
impl<const BITS: usize> StructuralEq for Int<BITS>
impl<const BITS: usize> StructuralPartialEq for Int<BITS>
Auto Trait Implementations§
impl<const BITS: usize> RefUnwindSafe for Int<BITS>
impl<const BITS: usize> Send for Int<BITS>
impl<const BITS: usize> Sync for Int<BITS>
impl<const BITS: usize> Unpin for Int<BITS>
impl<const BITS: usize> UnwindSafe for Int<BITS>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.