pub struct PoseidonHasher { /* private fields */ }Expand description
A stateful hasher for Starknet Poseidon hash.
Using this hasher is the same as calling poseidon_hash_many.
Implementations§
Trait Implementations§
Source§impl Clone for PoseidonHasher
impl Clone for PoseidonHasher
Source§fn clone(&self) -> PoseidonHasher
fn clone(&self) -> PoseidonHasher
Returns a duplicate 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 PoseidonHasher
impl Debug for PoseidonHasher
Source§impl Default for PoseidonHasher
impl Default for PoseidonHasher
Source§fn default() -> PoseidonHasher
fn default() -> PoseidonHasher
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PoseidonHasher
impl RefUnwindSafe for PoseidonHasher
impl Send for PoseidonHasher
impl Sync for PoseidonHasher
impl Unpin for PoseidonHasher
impl UnwindSafe for PoseidonHasher
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