Trait otter_api_tests::imports::digest::DynDigest[]

pub trait DynDigest {
    fn update(&mut self, data: &[u8]);
fn finalize_reset(&mut self) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    A: Allocator + 'static,
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
;
fn finalize(self: Box<Self, Global>) -> Box<[u8], Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    A: Allocator + 'static,
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
;
fn reset(&mut self);
fn output_size(&self) -> usize;
fn box_clone(&self) -> Box<dyn DynDigest + 'static, Global>

Notable traits for Box<R, Global>

impl<R> Read for Box<R, Global> where
    R: Read + ?Sized
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized
impl<I, A> Iterator for Box<I, A> where
    A: Allocator,
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
    A: Allocator + 'static,
    F: Future + Unpin + ?Sized
type Output = <F as Future>::Output;
; }
Expand description

The DynDigest trait is a modification of Digest trait suitable for trait objects.

Required methods

Digest input data.

This method can be called repeatedly for use with streaming messages.

Retrieve result and reset hasher instance

Retrieve result and consume boxed hasher instance

Reset hasher instance to its initial state.

Get output size of the hasher

Clone hasher state into a boxed trait object

Implementors