pub struct AnemoiDigest(/* private fields */);
Expand description
An Anemoi Digest for the Anemoi Hash over Felt
Implementations§
Source§impl AnemoiDigest
impl AnemoiDigest
Sourcepub fn as_elements(&self) -> &[Felt; 1]
pub fn as_elements(&self) -> &[Felt; 1]
Returns a reference to the wrapped digest
Sourcepub fn to_elements(&self) -> [Felt; 1]
pub fn to_elements(&self) -> [Felt; 1]
Returns the wrapped digest
Sourcepub fn digests_to_elements(digests: &[Self]) -> Vec<Felt>
pub fn digests_to_elements(digests: &[Self]) -> Vec<Felt>
Returns a Vec<Felt>
from the provided digest slice
Trait Implementations§
Source§impl Clone for AnemoiDigest
impl Clone for AnemoiDigest
Source§fn clone(&self) -> AnemoiDigest
fn clone(&self) -> AnemoiDigest
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 moreSource§impl Debug for AnemoiDigest
impl Debug for AnemoiDigest
Source§impl Default for AnemoiDigest
impl Default for AnemoiDigest
Source§impl PartialEq for AnemoiDigest
impl PartialEq for AnemoiDigest
impl Copy for AnemoiDigest
impl Eq for AnemoiDigest
impl StructuralPartialEq for AnemoiDigest
Auto Trait Implementations§
impl Freeze for AnemoiDigest
impl RefUnwindSafe for AnemoiDigest
impl Send for AnemoiDigest
impl Sync for AnemoiDigest
impl Unpin for AnemoiDigest
impl UnwindSafe for AnemoiDigest
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more