Skip to main content

Finalized

Struct Finalized 

Source
pub struct Finalized<'p, P, I, O> { /* private fields */ }
Expand description

A finalized output and its complete algorithm identity, without a cloneable state.

Implementations§

Source§

impl<'p, P, I, O: AsRef<[u8]>> Finalized<'p, P, I, O>

Source

pub fn identity(&self) -> &I

Resolved identity, including parameters and output-length semantics.

Source

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

Borrowed final output; providers must implement this as constant-time access.

Source

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

Borrows a typed prehash without cloning identity, state or output.

Source

pub fn finished(&self) -> Finished<'_, P, I, O>

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

Trait Implementations§

Source§

impl<'p, P: Debug, I: Debug, O: Debug> Debug for Finalized<'p, P, I, O>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'p, P, I, O> Freeze for Finalized<'p, P, I, O>
where &'p P: Freeze, I: Freeze, O: Freeze,

§

impl<'p, P, I, O> RefUnwindSafe for Finalized<'p, P, I, O>

§

impl<'p, P, I, O> Send for Finalized<'p, P, I, O>
where &'p P: Send, I: Send, O: Send,

§

impl<'p, P, I, O> Sync for Finalized<'p, P, I, O>
where &'p P: Sync, I: Sync, O: Sync,

§

impl<'p, P, I, O> Unpin for Finalized<'p, P, I, O>
where &'p P: Unpin, I: Unpin, O: Unpin,

§

impl<'p, P, I, O> UnsafeUnpin for Finalized<'p, P, I, O>

§

impl<'p, P, I, O> UnwindSafe for Finalized<'p, P, I, O>

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.