Struct ccp_shared::types::Difficulty
source · pub struct Difficulty(/* private fields */);
Implementations§
source§impl Difficulty
impl Difficulty
pub fn new(inner: DifficultyInner) -> Self
Trait Implementations§
source§impl AsRef<[u8; 32]> for Difficulty
impl AsRef<[u8; 32]> for Difficulty
source§fn as_ref(&self) -> &DifficultyInner
fn as_ref(&self) -> &DifficultyInner
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for Difficulty
impl Clone for Difficulty
source§fn clone(&self) -> Difficulty
fn clone(&self) -> Difficulty
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 Difficulty
impl Debug for Difficulty
source§impl Default for Difficulty
impl Default for Difficulty
source§fn default() -> Difficulty
fn default() -> Difficulty
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Difficulty
impl<'de> Deserialize<'de> for Difficulty
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 Difficulty
impl Display for Difficulty
source§impl FromHex for Difficulty
impl FromHex for Difficulty
source§impl FromStr for Difficulty
impl FromStr for Difficulty
source§impl Hash for Difficulty
impl Hash for Difficulty
source§impl PartialEq<Difficulty> for DifficultyInner
impl PartialEq<Difficulty> for DifficultyInner
source§fn eq(&self, other: &Difficulty) -> bool
fn eq(&self, other: &Difficulty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for Difficulty
impl PartialEq for Difficulty
source§fn eq(&self, other: &Difficulty) -> bool
fn eq(&self, other: &Difficulty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Difficulty> for DifficultyInner
impl PartialOrd<Difficulty> for DifficultyInner
source§fn partial_cmp(&self, other: &Difficulty) -> Option<Ordering>
fn partial_cmp(&self, other: &Difficulty) -> 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 Difficulty
impl Serialize for Difficulty
source§impl ToHex for Difficulty
impl ToHex for Difficulty
source§fn encode_hex<T: FromIterator<char>>(&self) -> T
fn encode_hex<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
fn encode_hex_upper<T: FromIterator<char>>(&self) -> T
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)impl Copy for Difficulty
impl Eq for Difficulty
impl StructuralPartialEq for Difficulty
Auto Trait Implementations§
impl Freeze for Difficulty
impl RefUnwindSafe for Difficulty
impl Send for Difficulty
impl Sync for Difficulty
impl Unpin for Difficulty
impl UnwindSafe for Difficulty
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