[−]Struct nimiq_block::Target
Methods
impl Target
impl Target
[src]
Trait Implementations
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
fn from(target_compact: TargetCompact) -> Self
[src]
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
fn from(hash: &'a Argon2dHash) -> Self
[src]
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
fn from(target: Target) -> FixedUnsigned10
[src]
impl From<Target> for Difficulty
[src]
Convert Target
to Difficulty
impl From<FixedUnsigned<FixedScale10>> for Target
[src]
Convert FixedUnsigned10
to Target
fn from(fixed: FixedUnsigned10) -> Target
[src]
impl From<Difficulty> for Target
[src]
XXX For testing only
fn from(difficulty: Difficulty) -> Self
[src]
impl Clone for Target
fn clone(&self) -> Target
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for Target
impl Eq for Target
impl Ord for Target
fn cmp(&self, other: &Target) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Target> for Target
impl PartialOrd<Target> for Target
fn partial_cmp(&self, other: &Target) -> Option<Ordering>
fn lt(&self, other: &Target) -> bool
fn le(&self, other: &Target) -> bool
fn gt(&self, other: &Target) -> bool
fn ge(&self, other: &Target) -> bool
impl Debug for Target
impl Hash for Target
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for Target
impl StructuralEq for Target
impl Deserialize for Target
fn deserialize<R: ReadBytesExt>(
reader: &mut R
) -> Result<Self, SerializingError>
reader: &mut R
) -> Result<Self, SerializingError>
fn deserialize_from_vec(v: &Vec<u8>) -> Result<Self, SerializingError>
[src]
impl Serialize for Target
fn serialize<W: WriteBytesExt>(
&self,
writer: &mut W
) -> Result<usize, SerializingError>
&self,
writer: &mut W
) -> Result<usize, SerializingError>
fn serialized_size(&self) -> usize
fn serialize_to_vec(&self) -> Vec<u8>
[src]
Auto Trait Implementations
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
impl RefUnwindSafe for Target
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,