Struct dusk_poseidon::tree::PoseidonAnnotation
source · [−]pub struct PoseidonAnnotation { /* private fields */ }
Expand description
A microkelvin annotation with the minimum data for a functional poseidon tree
The recommended usage for extended annotations for poseidon trees is to have this structure as attribute of the concrete annotation, and reflect the borrows of the cardinality and scalar to the poseidon annotation implementation.
Implementations
sourceimpl PoseidonAnnotation
impl PoseidonAnnotation
sourcepub fn poseidon_root(&self) -> &BlsScalar
pub fn poseidon_root(&self) -> &BlsScalar
Return the scalar representation of the root of the annotated subtree
Trait Implementations
sourceimpl<L> Annotation<L> for PoseidonAnnotation where
L: PoseidonLeaf,
impl<L> Annotation<L> for PoseidonAnnotation where
L: PoseidonLeaf,
sourceimpl Borrow<Cardinality> for PoseidonAnnotation
impl Borrow<Cardinality> for PoseidonAnnotation
sourcefn borrow(&self) -> &Cardinality
fn borrow(&self) -> &Cardinality
Immutably borrows from an owned value. Read more
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 Borrow<Scalar> for PoseidonAnnotation
impl Borrow<Scalar> for PoseidonAnnotation
sourceimpl Canon for PoseidonAnnotation
impl Canon for PoseidonAnnotation
sourceimpl Clone for PoseidonAnnotation
impl Clone for PoseidonAnnotation
sourcefn clone(&self) -> PoseidonAnnotation
fn clone(&self) -> PoseidonAnnotation
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> Combine<A> for PoseidonAnnotation where
A: Borrow<Cardinality> + Borrow<Self> + Borrow<BlsScalar>,
impl<A> Combine<A> for PoseidonAnnotation where
A: Borrow<Cardinality> + Borrow<Self> + Borrow<BlsScalar>,
sourceimpl Debug for PoseidonAnnotation
impl Debug for PoseidonAnnotation
sourceimpl Default for PoseidonAnnotation
impl Default for PoseidonAnnotation
sourcefn default() -> PoseidonAnnotation
fn default() -> PoseidonAnnotation
Returns the “default value” for a type. Read more
impl<L> PoseidonTreeAnnotation<L> for PoseidonAnnotation where
L: PoseidonLeaf,
Auto Trait Implementations
impl RefUnwindSafe for PoseidonAnnotation
impl Send for PoseidonAnnotation
impl Sync for PoseidonAnnotation
impl Unpin for PoseidonAnnotation
impl UnwindSafe for PoseidonAnnotation
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more