Skip to main content

HashOrigin

Enum HashOrigin 

Source
pub enum HashOrigin<N> {
    SignatureMessage {
        instruction: N,
        method: Option<N>,
    },
    MaskGeneration {
        instruction: N,
        method: Option<N>,
    },
    Reference {
        instruction: N,
        method: Option<N>,
        parent: Parent<N>,
    },
}
Expand description

Original component selecting an actual digest use, including PSS defaults.

Variants§

§

SignatureMessage

Original selected signature method.

Fields

§instruction: N

Original instruction/enclosure, even when its method is malformed.

§method: Option<N>

Actual written method when available; no fake node for a default.

§

MaskGeneration

Original PSS/MGF source; implicit defaults keep their real enclosure.

Fields

§instruction: N

Original selecting instruction/enclosure.

§method: Option<N>

Actual written method, independently of its implicit default.

§

Reference

Actual direct or authenticated Manifest reference and its digest method.

Fields

§instruction: N

Original authenticated instruction.

§method: Option<N>

Original method, never a fabricated node for a default.

§parent: Parent<N>

Exact selected instruction parent.

Implementations§

Source§

impl<N: Copy> HashOrigin<N>

Source

pub fn node(self) -> N

Real selecting instruction/enclosure. Optional exact method identity remains separately available in the origin; None is not a fake node.

Trait Implementations§

Source§

impl<N: Clone> Clone for HashOrigin<N>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<N: Copy> Copy for HashOrigin<N>

Source§

impl<N: Debug> Debug for HashOrigin<N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<N: Eq> Eq for HashOrigin<N>

Source§

impl<N: PartialEq> PartialEq for HashOrigin<N>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<N: PartialEq> StructuralPartialEq for HashOrigin<N>

Auto Trait Implementations§

§

impl<N> Forget for HashOrigin<N>

§

impl<N> Freeze for HashOrigin<N>
where N: Freeze, Option<N>: Freeze, Parent<N>: Freeze,

§

impl<N> RefUnwindSafe for HashOrigin<N>

§

impl<N> Send for HashOrigin<N>
where N: Send, Option<N>: Send, Parent<N>: Send,

§

impl<N> Sync for HashOrigin<N>
where N: Sync, Option<N>: Sync, Parent<N>: Sync,

§

impl<N> Unpin for HashOrigin<N>
where N: Unpin, Option<N>: Unpin, Parent<N>: Unpin,

§

impl<N> UnsafeUnpin for HashOrigin<N>

§

impl<N> UnwindSafe for HashOrigin<N>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.