Skip to main content

RelatedDigest

Struct RelatedDigest 

Source
pub struct RelatedDigest<'m, 'a, P: Digest<'a>> { /* private fields */ }
Expand description

A separately completed input under an existing memo’s resolved identity.

Signed attributes need their own digest output, while sharing the payload’s already resolved identity. This result borrows that identity and owns its output; it cannot outlive the memo or become a fabricated digest identity.

Implementations§

Source§

impl<'a, P: Digest<'a>> RelatedDigest<'_, 'a, P>

Source

pub fn prehash(&self) -> Prehash<'_, '_, P, P::Identity>

Typed finalized input with short borrows, without identity/output clones.

Source

pub fn finished(&self) -> Finished<'_, P, P::Identity, P::Output>

Borrows the provider’s own output for its comparison, with provenance.

Auto Trait Implementations§

§

impl<'m, 'a, P> Freeze for RelatedDigest<'m, 'a, P>
where &'a P: Freeze, &'m <P as Digest<'a>>::Identity: Freeze, <P as Digest<'a>>::Output: Freeze,

§

impl<'m, 'a, P> RefUnwindSafe for RelatedDigest<'m, 'a, P>
where &'a P: RefUnwindSafe, &'m <P as Digest<'a>>::Identity: RefUnwindSafe, <P as Digest<'a>>::Output: RefUnwindSafe,

§

impl<'m, 'a, P> Send for RelatedDigest<'m, 'a, P>
where &'a P: Send, &'m <P as Digest<'a>>::Identity: Send, <P as Digest<'a>>::Output: Send,

§

impl<'m, 'a, P> Sync for RelatedDigest<'m, 'a, P>
where &'a P: Sync, &'m <P as Digest<'a>>::Identity: Sync, <P as Digest<'a>>::Output: Sync,

§

impl<'m, 'a, P> Unpin for RelatedDigest<'m, 'a, P>
where &'a P: Unpin, &'m <P as Digest<'a>>::Identity: Unpin, <P as Digest<'a>>::Output: Unpin,

§

impl<'m, 'a, P> UnsafeUnpin for RelatedDigest<'m, 'a, P>
where &'a P: UnsafeUnpin, &'m <P as Digest<'a>>::Identity: UnsafeUnpin, <P as Digest<'a>>::Output: UnsafeUnpin,

§

impl<'m, 'a, P> UnwindSafe for RelatedDigest<'m, 'a, P>
where &'a P: UnwindSafe, &'m <P as Digest<'a>>::Identity: UnwindSafe, <P as Digest<'a>>::Output: UnwindSafe,

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> 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, 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.