[−][src]Enum neptune::hash_type::HashType
Variants
MerkleTreeSparse(u64)
ConstantLength(usize)
Custom(CType<Fr, A>)
Implementations
impl<Fr: PrimeField, A: Arity<Fr>> HashType<Fr, A>
[src]
pub fn domain_tag(&self, strength: &Strength) -> Fr
[src]
pub fn is_supported(&self) -> bool
[src]
Some HashTypes require more testing so are not yet supported, since they are not yet needed. As and when needed, support can be added, along with tests to ensure the initial implementation is sound.
Trait Implementations
impl<Fr: Clone + PrimeField, A: Clone + Arity<Fr>> Clone for HashType<Fr, A>
[src]
impl<Fr: Debug + PrimeField, A: Debug + Arity<Fr>> Debug for HashType<Fr, A>
[src]
impl<Fr: PartialEq + PrimeField, A: PartialEq + Arity<Fr>> PartialEq<HashType<Fr, A>> for HashType<Fr, A>
[src]
fn eq(&self, other: &HashType<Fr, A>) -> bool
[src]
fn ne(&self, other: &HashType<Fr, A>) -> bool
[src]
impl<Fr: PrimeField, A: Arity<Fr>> StructuralPartialEq for HashType<Fr, A>
[src]
Auto Trait Implementations
impl<Fr, A> RefUnwindSafe for HashType<Fr, A> where
A: RefUnwindSafe,
Fr: RefUnwindSafe,
A: RefUnwindSafe,
Fr: RefUnwindSafe,
impl<Fr, A> Send for HashType<Fr, A> where
A: Send,
A: Send,
impl<Fr, A> Sync for HashType<Fr, A> where
A: Sync,
A: Sync,
impl<Fr, A> Unpin for HashType<Fr, A> where
A: Unpin,
Fr: Unpin,
A: Unpin,
Fr: Unpin,
impl<Fr, A> UnwindSafe for HashType<Fr, A> where
A: UnwindSafe,
Fr: UnwindSafe,
A: UnwindSafe,
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,
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,