pub enum FieldElementSize {
Full,
Truncated(usize),
}Expand description
An enum for specifying the output field element size.
Variants§
Full
Sample field elements from the entire field.
Truncated(usize)
Sample field elements from a subset of the field, specified by the maximum number of bits.
Implementations§
Source§impl FieldElementSize
impl FieldElementSize
Sourcepub fn sum<F: PrimeField>(elements: &[Self]) -> usize
pub fn sum<F: PrimeField>(elements: &[Self]) -> usize
Calculate the sum of field element sizes in elements.
Trait Implementations§
Source§impl Clone for FieldElementSize
impl Clone for FieldElementSize
Source§fn clone(&self) -> FieldElementSize
fn clone(&self) -> FieldElementSize
Returns a duplicate 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 PartialEq for FieldElementSize
impl PartialEq for FieldElementSize
impl Copy for FieldElementSize
impl Eq for FieldElementSize
impl StructuralPartialEq for FieldElementSize
Auto Trait Implementations§
impl Freeze for FieldElementSize
impl RefUnwindSafe for FieldElementSize
impl Send for FieldElementSize
impl Sync for FieldElementSize
impl Unpin for FieldElementSize
impl UnwindSafe for FieldElementSize
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