Struct mpot::EnvelopeHash
pub struct EnvelopeHash(pub u64);
Tuple Fields§
§0: u64
Implementations§
§impl EnvelopeHash
impl EnvelopeHash
pub fn from_bytes(bytes: &[u8]) -> EnvelopeHash
pub const fn to_be_bytes(self) -> [u8; 8]
pub const fn is_null(self) -> bool
Trait Implementations§
§impl Clone for EnvelopeHash
impl Clone for EnvelopeHash
§fn clone(&self) -> EnvelopeHash
fn clone(&self) -> EnvelopeHash
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 more§impl Debug for EnvelopeHash
impl Debug for EnvelopeHash
§impl Default for EnvelopeHash
impl Default for EnvelopeHash
§fn default() -> EnvelopeHash
fn default() -> EnvelopeHash
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for EnvelopeHash
impl<'de> Deserialize<'de> for EnvelopeHash
§fn deserialize<__D>(
__deserializer: __D
) -> Result<EnvelopeHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<EnvelopeHash, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for EnvelopeHash
impl Display for EnvelopeHash
§impl From<EnvelopeHash> for EnvelopeHashBatch
impl From<EnvelopeHash> for EnvelopeHashBatch
§fn from(value: EnvelopeHash) -> EnvelopeHashBatch
fn from(value: EnvelopeHash) -> EnvelopeHashBatch
Converts to this type from the input type.
§impl Hash for EnvelopeHash
impl Hash for EnvelopeHash
§impl Ord for EnvelopeHash
impl Ord for EnvelopeHash
§impl PartialEq<EnvelopeHash> for EnvelopeHash
impl PartialEq<EnvelopeHash> for EnvelopeHash
§fn eq(&self, other: &EnvelopeHash) -> bool
fn eq(&self, other: &EnvelopeHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<EnvelopeHash> for EnvelopeHash
impl PartialOrd<EnvelopeHash> for EnvelopeHash
§fn partial_cmp(&self, other: &EnvelopeHash) -> Option<Ordering>
fn partial_cmp(&self, other: &EnvelopeHash) -> 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 more§impl Serialize for EnvelopeHash
impl Serialize for EnvelopeHash
§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 Copy for EnvelopeHash
impl Eq for EnvelopeHash
impl StructuralEq for EnvelopeHash
impl StructuralPartialEq for EnvelopeHash
Auto Trait Implementations§
impl RefUnwindSafe for EnvelopeHash
impl Send for EnvelopeHash
impl Sync for EnvelopeHash
impl Unpin for EnvelopeHash
impl UnwindSafe for EnvelopeHash
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.