pub struct POSEIDON_4 { /* private fields */ }Expand description
The Poseidon hash function, using a rate of 4.
Methods from Deref<Target = Poseidon<Testnet3, 4>>§
Sourcepub fn parameters(
&self,
) -> &Arc<PoseidonParameters<<E as Environment>::Field, RATE, snarkvm_console_algorithms::::poseidon::{impl#0}::parameters::{constant#0}>>
pub fn parameters( &self, ) -> &Arc<PoseidonParameters<<E as Environment>::Field, RATE, snarkvm_console_algorithms::::poseidon::{impl#0}::parameters::{constant#0}>>
Returns the Poseidon parameters for hashing.
Trait Implementations§
Source§impl Deref for POSEIDON_4
impl Deref for POSEIDON_4
impl LazyStatic for POSEIDON_4
Auto Trait Implementations§
impl Freeze for POSEIDON_4
impl RefUnwindSafe for POSEIDON_4
impl Send for POSEIDON_4
impl Sync for POSEIDON_4
impl Unpin for POSEIDON_4
impl UnwindSafe for POSEIDON_4
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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