Struct ring::digest::BlockContext
source · pub(crate) struct BlockContext {
state: State,
completed_data_blocks: u64,
pub algorithm: &'static Algorithm,
}
Fields§
§state: State
§completed_data_blocks: u64
§algorithm: &'static Algorithm
The context’s algorithm.
Implementations§
source§impl BlockContext
impl BlockContext
pub(crate) fn new(algorithm: &'static Algorithm) -> Self
pub(crate) fn update(&mut self, input: &[u8])
pub(crate) fn finish(self, pending: &mut [u8], num_pending: usize) -> Digest
unsafe fn block_data_order( &mut self, pending: *const u8, num_blocks: usize, _cpu_features: Features, )
Trait Implementations§
source§impl Clone for BlockContext
impl Clone for BlockContext
source§fn clone(&self) -> BlockContext
fn clone(&self) -> BlockContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BlockContext
impl RefUnwindSafe for BlockContext
impl Send for BlockContext
impl Sync for BlockContext
impl Unpin for BlockContext
impl UnwindSafe for BlockContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)