Struct disarray_ledger::blocks::BlockDifficulty
source · pub struct BlockDifficulty {
pub pos: H256,
pub pow: H256,
}
Fields
pos: H256
pow: H256
Implementations
Trait Implementations
sourceimpl Clone for BlockDifficulty
impl Clone for BlockDifficulty
sourcefn clone(&self) -> BlockDifficulty
fn clone(&self) -> BlockDifficulty
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlockDifficulty
impl Debug for BlockDifficulty
sourceimpl Default for BlockDifficulty
impl Default for BlockDifficulty
sourceimpl<'de> Deserialize<'de> for BlockDifficulty
impl<'de> Deserialize<'de> for BlockDifficulty
sourcefn 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
sourceimpl Display for BlockDifficulty
impl Display for BlockDifficulty
sourceimpl From<(&H256, &H256)> for BlockDifficulty
impl From<(&H256, &H256)> for BlockDifficulty
sourceimpl From<(H256, H256)> for BlockDifficulty
impl From<(H256, H256)> for BlockDifficulty
sourceimpl Hash for BlockDifficulty
impl Hash for BlockDifficulty
sourceimpl Hashable for BlockDifficulty
impl Hashable for BlockDifficulty
sourceimpl PartialEq<BlockDifficulty> for BlockDifficulty
impl PartialEq<BlockDifficulty> for BlockDifficulty
sourcefn eq(&self, other: &BlockDifficulty) -> bool
fn eq(&self, other: &BlockDifficulty) -> bool
sourceimpl Resistable for BlockDifficulty
impl Resistable for BlockDifficulty
fn pos_difficulty(&self) -> H256
fn pow_difficulty(&self) -> H256
sourceimpl Serialize for BlockDifficulty
impl Serialize for BlockDifficulty
impl Eq for BlockDifficulty
impl StructuralEq for BlockDifficulty
impl StructuralPartialEq for BlockDifficulty
Auto Trait Implementations
impl RefUnwindSafe for BlockDifficulty
impl Send for BlockDifficulty
impl Sync for BlockDifficulty
impl Unpin for BlockDifficulty
impl UnwindSafe for BlockDifficulty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.