Struct concrete_commons::parameters::PolynomialSizeLog
source · [−]pub struct PolynomialSizeLog(pub usize);
Expand description
The logarithm of the number of coefficients of a polynomial.
Assuming a polynomial $a_0 + a_1X + /dots + a_{N-1}X^{N-1}$, this returns $\log_2(N)$.
Tuple Fields
0: usize
Implementations
sourceimpl PolynomialSizeLog
impl PolynomialSizeLog
sourcepub fn to_polynomial_size(&self) -> PolynomialSize
pub fn to_polynomial_size(&self) -> PolynomialSize
Returns the associated PolynomialSizeLog
.
Trait Implementations
sourceimpl Clone for PolynomialSizeLog
impl Clone for PolynomialSizeLog
sourcefn clone(&self) -> PolynomialSizeLog
fn clone(&self) -> PolynomialSizeLog
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 Debug for PolynomialSizeLog
impl Debug for PolynomialSizeLog
sourceimpl Ord for PolynomialSizeLog
impl Ord for PolynomialSizeLog
sourceimpl PartialEq<PolynomialSizeLog> for PolynomialSizeLog
impl PartialEq<PolynomialSizeLog> for PolynomialSizeLog
sourcefn eq(&self, other: &PolynomialSizeLog) -> bool
fn eq(&self, other: &PolynomialSizeLog) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PolynomialSizeLog) -> bool
fn ne(&self, other: &PolynomialSizeLog) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PolynomialSizeLog> for PolynomialSizeLog
impl PartialOrd<PolynomialSizeLog> for PolynomialSizeLog
sourcefn partial_cmp(&self, other: &PolynomialSizeLog) -> Option<Ordering>
fn partial_cmp(&self, other: &PolynomialSizeLog) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PolynomialSizeLog
impl Eq for PolynomialSizeLog
impl StructuralEq for PolynomialSizeLog
impl StructuralPartialEq for PolynomialSizeLog
Auto Trait Implementations
impl RefUnwindSafe for PolynomialSizeLog
impl Send for PolynomialSizeLog
impl Sync for PolynomialSizeLog
impl Unpin for PolynomialSizeLog
impl UnwindSafe for PolynomialSizeLog
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