pub struct FieldElementBackend<F, D: Digest, const NUM_BYTES: usize> { /* private fields */ }
Trait Implementations§
source§impl<F: Clone, D: Clone + Digest, const NUM_BYTES: usize> Clone for FieldElementBackend<F, D, NUM_BYTES>
impl<F: Clone, D: Clone + Digest, const NUM_BYTES: usize> Clone for FieldElementBackend<F, D, NUM_BYTES>
source§fn clone(&self) -> FieldElementBackend<F, D, NUM_BYTES>
fn clone(&self) -> FieldElementBackend<F, D, NUM_BYTES>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F, D: Digest, const NUM_BYTES: usize> IsMerkleTreeBackend for FieldElementBackend<F, D, NUM_BYTES>where
F: IsField,
FieldElement<F>: AsBytes + Sync + Send,
[u8; NUM_BYTES]: From<GenericArray<u8, <D as OutputSizeUser>::OutputSize>>,
impl<F, D: Digest, const NUM_BYTES: usize> IsMerkleTreeBackend for FieldElementBackend<F, D, NUM_BYTES>where
F: IsField,
FieldElement<F>: AsBytes + Sync + Send,
[u8; NUM_BYTES]: From<GenericArray<u8, <D as OutputSizeUser>::OutputSize>>,
type Node = [u8; NUM_BYTES]
type Data = FieldElement<F>
source§fn hash_data(input: &FieldElement<F>) -> [u8; NUM_BYTES]
fn hash_data(input: &FieldElement<F>) -> [u8; NUM_BYTES]
This function takes a single variable
Data
and converts it to a node.Auto Trait Implementations§
impl<F, D, const NUM_BYTES: usize> Freeze for FieldElementBackend<F, D, NUM_BYTES>
impl<F, D, const NUM_BYTES: usize> RefUnwindSafe for FieldElementBackend<F, D, NUM_BYTES>where
F: RefUnwindSafe,
D: RefUnwindSafe,
impl<F, D, const NUM_BYTES: usize> Send for FieldElementBackend<F, D, NUM_BYTES>
impl<F, D, const NUM_BYTES: usize> Sync for FieldElementBackend<F, D, NUM_BYTES>
impl<F, D, const NUM_BYTES: usize> Unpin for FieldElementBackend<F, D, NUM_BYTES>
impl<F, D, const NUM_BYTES: usize> UnwindSafe for FieldElementBackend<F, D, NUM_BYTES>where
F: UnwindSafe,
D: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)