Struct melib::backends::AccountHash
source · #[repr(transparent)]pub struct AccountHash(pub u64);
Tuple Fields§
§0: u64
Implementations§
source§impl AccountHash
impl AccountHash
pub fn from_bytes(bytes: &[u8]) -> Self
pub const fn to_be_bytes(self) -> [u8; 8]
pub const fn is_null(self) -> bool
Trait Implementations§
source§impl Clone for AccountHash
impl Clone for AccountHash
source§fn clone(&self) -> AccountHash
fn clone(&self) -> AccountHash
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 Debug for AccountHash
impl Debug for AccountHash
source§impl Default for AccountHash
impl Default for AccountHash
source§fn default() -> AccountHash
fn default() -> AccountHash
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccountHash
impl<'de> Deserialize<'de> for AccountHash
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for AccountHash
impl Display for AccountHash
source§impl Hash for AccountHash
impl Hash for AccountHash
source§impl Ord for AccountHash
impl Ord for AccountHash
source§fn cmp(&self, other: &AccountHash) -> Ordering
fn cmp(&self, other: &AccountHash) -> 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 PartialEq for AccountHash
impl PartialEq for AccountHash
source§fn eq(&self, other: &AccountHash) -> bool
fn eq(&self, other: &AccountHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AccountHash
impl PartialOrd for AccountHash
source§fn partial_cmp(&self, other: &AccountHash) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountHash) -> 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 Serialize for AccountHash
impl Serialize for AccountHash
impl Copy for AccountHash
impl Eq for AccountHash
impl StructuralPartialEq for AccountHash
Auto Trait Implementations§
impl Freeze for AccountHash
impl RefUnwindSafe for AccountHash
impl Send for AccountHash
impl Sync for AccountHash
impl Unpin for AccountHash
impl UnwindSafe for AccountHash
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.