[]Struct nimiq_block::Target

#[repr(C)]
pub struct Target(_);

Methods

impl Target

pub const SIZE: usize

pub fn len() -> usize

pub fn as_bytes(&self) -> &[u8]

impl Target[src]

pub fn is_met_by(&self, hash: &Argon2dHash) -> bool[src]

pub fn get_depth(&self) -> u8[src]

Trait Implementations

impl PartialEq<Target> for Target

impl<'a> From<&'a [u8]> for Target

impl From<[u8; 32]> for Target

impl From<Target> for [u8; 32]

impl From<TargetCompact> for Target[src]

Convert TargetCompact to Target

impl From<Target> for TargetCompact[src]

Convert Target to TargetCompact

NOTE: This just delegates to From<&Target> for TargetCompact

impl<'a> From<&'a Target> for TargetCompact[src]

Convert &Target to TargetCompact

impl<'a> From<&'a Argon2dHash> for Target[src]

Convert Argon2dHash to Target

impl From<BigUint> for Target[src]

Convert BigUint to Target

impl From<Target> for BigUint[src]

Convert Target to BigUint

impl From<Target> for FixedUnsigned10[src]

Convert Target to FixedUnsigned10

impl From<Target> for Difficulty[src]

Convert Target to Difficulty

impl From<FixedUnsigned<FixedScale10>> for Target[src]

Convert FixedUnsigned10 to Target

impl From<Difficulty> for Target[src]

XXX For testing only

impl Clone for Target

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Ord for Target

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Default for Target

impl Eq for Target

impl PartialOrd<Target> for Target

impl Debug for Target

impl Hash for Target

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Deserialize for Target

fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>[src]

impl Serialize for Target

fn serialize_to_vec(&self) -> Vec<u8>[src]

Auto Trait Implementations

impl Send for Target

impl Sync for Target

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Erased for T