Struct concrete_core::specification::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: usizeImplementations
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PolynomialSizeLog
impl Debug for PolynomialSizeLog
sourceimpl<'de> Deserialize<'de> for PolynomialSizeLog
impl<'de> Deserialize<'de> for PolynomialSizeLog
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for PolynomialSizeLog
impl Ord for PolynomialSizeLog
sourcefn cmp(&self, other: &PolynomialSizeLog) -> Ordering
fn cmp(&self, other: &PolynomialSizeLog) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<PolynomialSizeLog> for PolynomialSizeLog
impl PartialEq<PolynomialSizeLog> for PolynomialSizeLog
sourcefn eq(&self, other: &PolynomialSizeLog) -> bool
fn eq(&self, other: &PolynomialSizeLog) -> bool
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl Serialize for PolynomialSizeLog
impl Serialize for PolynomialSizeLog
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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