Struct concrete_commons::parameters::GlweSize
source · [−]pub struct GlweSize(pub usize);
Expand description
The number of polynomials in a GLWE ciphertext, i.e. the number of polynomials in a GLWE mask plus one.
Tuple Fields
0: usize
Implementations
sourceimpl GlweSize
impl GlweSize
sourcepub fn to_glwe_dimension(&self) -> GlweDimension
pub fn to_glwe_dimension(&self) -> GlweDimension
Returns the associated GlweDimension
.
Trait Implementations
sourceimpl Ord for GlweSize
impl Ord for GlweSize
sourceimpl PartialOrd<GlweSize> for GlweSize
impl PartialOrd<GlweSize> for GlweSize
sourcefn partial_cmp(&self, other: &GlweSize) -> Option<Ordering>
fn partial_cmp(&self, other: &GlweSize) -> 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 GlweSize
impl Eq for GlweSize
impl StructuralEq for GlweSize
impl StructuralPartialEq for GlweSize
Auto Trait Implementations
impl RefUnwindSafe for GlweSize
impl Send for GlweSize
impl Sync for GlweSize
impl Unpin for GlweSize
impl UnwindSafe for GlweSize
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