Struct ckb_sdk::HumanCapacity
source · pub struct HumanCapacity(pub u64);Tuple Fields§
§0: u64Methods from Deref<Target = u64>§
Trait Implementations§
source§impl Clone for HumanCapacity
impl Clone for HumanCapacity
source§fn clone(&self) -> HumanCapacity
fn clone(&self) -> HumanCapacity
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 HumanCapacity
impl Debug for HumanCapacity
source§impl Default for HumanCapacity
impl Default for HumanCapacity
source§fn default() -> HumanCapacity
fn default() -> HumanCapacity
Returns the “default value” for a type. Read more
source§impl Deref for HumanCapacity
impl Deref for HumanCapacity
source§impl Display for HumanCapacity
impl Display for HumanCapacity
source§impl From<HumanCapacity> for u64
impl From<HumanCapacity> for u64
source§fn from(value: HumanCapacity) -> u64
fn from(value: HumanCapacity) -> u64
Converts to this type from the input type.
source§impl From<u64> for HumanCapacity
impl From<u64> for HumanCapacity
source§fn from(value: u64) -> HumanCapacity
fn from(value: u64) -> HumanCapacity
Converts to this type from the input type.
source§impl FromStr for HumanCapacity
impl FromStr for HumanCapacity
source§impl Hash for HumanCapacity
impl Hash for HumanCapacity
source§impl Ord for HumanCapacity
impl Ord for HumanCapacity
source§fn cmp(&self, other: &HumanCapacity) -> Ordering
fn cmp(&self, other: &HumanCapacity) -> 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<HumanCapacity> for HumanCapacity
impl PartialEq<HumanCapacity> for HumanCapacity
source§fn eq(&self, other: &HumanCapacity) -> bool
fn eq(&self, other: &HumanCapacity) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<HumanCapacity> for HumanCapacity
impl PartialOrd<HumanCapacity> for HumanCapacity
source§fn partial_cmp(&self, other: &HumanCapacity) -> Option<Ordering>
fn partial_cmp(&self, other: &HumanCapacity) -> 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 moreimpl Copy for HumanCapacity
impl Eq for HumanCapacity
impl StructuralEq for HumanCapacity
impl StructuralPartialEq for HumanCapacity
Auto Trait Implementations§
impl RefUnwindSafe for HumanCapacity
impl Send for HumanCapacity
impl Sync for HumanCapacity
impl Unpin for HumanCapacity
impl UnwindSafe for HumanCapacity
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.