Struct dusk_poseidon::tree::PoseidonMaxAnnotation
source · [−]pub struct PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord, { /* private fields */ }
Expand description
Extends the standard PoseidonAnnotation
with an annotation that holds an agnostic maximum
value
This maximum value is representes as u64
, and the tree is iterable over it
Trait Implementations
sourceimpl<L, K> Annotation<L> for PoseidonMaxAnnotation<K> where
L: PoseidonLeaf,
L: Borrow<u64>,
L: Keyed<K>,
K: Canon + Default + Clone + Ord,
impl<L, K> Annotation<L> for PoseidonMaxAnnotation<K> where
L: PoseidonLeaf,
L: Borrow<u64>,
L: Keyed<K>,
K: Canon + Default + Clone + Ord,
sourceimpl<K> Borrow<Cardinality> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
impl<K> Borrow<Cardinality> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
sourcefn borrow(&self) -> &Cardinality
fn borrow(&self) -> &Cardinality
Immutably borrows from an owned value. Read more
sourceimpl<K> Borrow<MaxKey<K>> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
impl<K> Borrow<MaxKey<K>> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
sourceimpl<K> Borrow<PoseidonAnnotation> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
impl<K> Borrow<PoseidonAnnotation> for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
sourcefn borrow(&self) -> &PoseidonAnnotation
fn borrow(&self) -> &PoseidonAnnotation
Immutably borrows from an owned value. Read more
sourceimpl<K: Clone> Clone for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
impl<K: Clone> Clone for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
sourcefn clone(&self) -> PoseidonMaxAnnotation<K>
fn clone(&self) -> PoseidonMaxAnnotation<K>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A, K> Combine<A> for PoseidonMaxAnnotation<K> where
A: Borrow<Cardinality> + Borrow<MaxKey<K>> + Borrow<PoseidonAnnotation> + Borrow<BlsScalar>,
K: Canon + Default + Clone + Ord,
impl<A, K> Combine<A> for PoseidonMaxAnnotation<K> where
A: Borrow<Cardinality> + Borrow<MaxKey<K>> + Borrow<PoseidonAnnotation> + Borrow<BlsScalar>,
K: Canon + Default + Clone + Ord,
sourceimpl<K: Default> Default for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
impl<K: Default> Default for PoseidonMaxAnnotation<K> where
K: Canon + Default + Clone + Ord,
sourcefn default() -> PoseidonMaxAnnotation<K>
fn default() -> PoseidonMaxAnnotation<K>
Returns the “default value” for a type. Read more
impl<L, K> PoseidonTreeAnnotation<L> for PoseidonMaxAnnotation<K> where
L: PoseidonLeaf + Borrow<u64> + Keyed<K>,
K: Canon + Default + Clone + Ord,
Auto Trait Implementations
impl<K> RefUnwindSafe for PoseidonMaxAnnotation<K> where
K: RefUnwindSafe,
impl<K> Send for PoseidonMaxAnnotation<K> where
K: Send,
impl<K> Sync for PoseidonMaxAnnotation<K> where
K: Sync,
impl<K> Unpin for PoseidonMaxAnnotation<K> where
K: Unpin,
impl<K> UnwindSafe for PoseidonMaxAnnotation<K> where
K: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> EncodeToVec for T where
T: Canon,
impl<T> EncodeToVec for T where
T: Canon,
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encode Self
into a buffer
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more