[−][src]Struct neptune::poseidon::PoseidonConstants
Fields
mds_matrix: Vec<Vec<E::Fr>>
round_constants: Vec<E::Fr>
arity_tag: E::Fr
full_rounds: usize
partial_rounds: usize
Methods
impl<E, Arity> PoseidonConstants<E, Arity> where
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
[src]
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
pub fn new() -> Self
[src]
pub fn arity(&self) -> usize
[src]
Returns the width.
pub fn width(&self) -> usize
[src]
Returns the width.
Trait Implementations
impl<E: Clone, Arity: Clone> Clone for PoseidonConstants<E, Arity> where
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: Clone,
E::Fr: Clone,
E::Fr: Clone,
[src]
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: Clone,
E::Fr: Clone,
E::Fr: Clone,
fn clone(&self) -> PoseidonConstants<E, Arity>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug, Arity: Debug> Debug for PoseidonConstants<E, Arity> where
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
[src]
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: Debug,
E::Fr: Debug,
E::Fr: Debug,
impl<E: PartialEq, Arity: PartialEq> PartialEq<PoseidonConstants<E, Arity>> for PoseidonConstants<E, Arity> where
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: PartialEq,
E::Fr: PartialEq,
E::Fr: PartialEq,
[src]
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
E::Fr: PartialEq,
E::Fr: PartialEq,
E::Fr: PartialEq,
fn eq(&self, other: &PoseidonConstants<E, Arity>) -> bool
[src]
fn ne(&self, other: &PoseidonConstants<E, Arity>) -> bool
[src]
impl<E, Arity> StructuralPartialEq for PoseidonConstants<E, Arity> where
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
[src]
E: ScalarEngine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
Auto Trait Implementations
impl<E, Arity> RefUnwindSafe for PoseidonConstants<E, Arity> where
Arity: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
Arity: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
impl<E, Arity> Send for PoseidonConstants<E, Arity> where
Arity: Send,
<E as ScalarEngine>::Fr: Send,
Arity: Send,
<E as ScalarEngine>::Fr: Send,
impl<E, Arity> Sync for PoseidonConstants<E, Arity> where
Arity: Sync,
<E as ScalarEngine>::Fr: Sync,
Arity: Sync,
<E as ScalarEngine>::Fr: Sync,
impl<E, Arity> Unpin for PoseidonConstants<E, Arity> where
Arity: Unpin,
<E as ScalarEngine>::Fr: Unpin,
Arity: Unpin,
<E as ScalarEngine>::Fr: Unpin,
impl<E, Arity> UnwindSafe for PoseidonConstants<E, Arity> where
Arity: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
Arity: UnwindSafe,
<E as ScalarEngine>::Fr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,