pub struct Uint<const BITS: usize>(pub [u8; 32]);Expand description
uint<M> type mapping
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
source§impl<'de, const BITS: usize> Deserialize<'de> for Uint<BITS>
impl<'de, const BITS: usize> Deserialize<'de> for Uint<BITS>
source§fn deserialize<D>(
deserializer: D
) -> Result<Uint<BITS>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Uint<BITS>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Uint<256>> for BlockNumberOrTag
impl From<Uint<256>> for BlockNumberOrTag
source§fn from(v: Uint<256>) -> BlockNumberOrTag
fn from(v: Uint<256>) -> BlockNumberOrTag
Converts to this type from the input type.
source§impl<const BITS: usize> PartialEq<Uint<BITS>> for Uint<BITS>
impl<const BITS: usize> PartialEq<Uint<BITS>> for Uint<BITS>
source§impl<const BITS: usize> PartialOrd<Uint<BITS>> for Uint<BITS>
impl<const BITS: usize> PartialOrd<Uint<BITS>> for Uint<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 Uint<BITS>
impl<const BITS: usize> Serialize for Uint<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 Uint<BITS>
impl<const BITS: usize> Eq for Uint<BITS>
impl<const BITS: usize> StructuralEq for Uint<BITS>
impl<const BITS: usize> StructuralPartialEq for Uint<BITS>
Auto Trait Implementations§
impl<const BITS: usize> RefUnwindSafe for Uint<BITS>
impl<const BITS: usize> Send for Uint<BITS>
impl<const BITS: usize> Sync for Uint<BITS>
impl<const BITS: usize> Unpin for Uint<BITS>
impl<const BITS: usize> UnwindSafe for Uint<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.