Struct concrete_commons::parameters::GlweDimension
source · [−]pub struct GlweDimension(pub usize);
Expand description
The number of polynomials of an GLWE mask, or the size of an GLWE secret key.
Tuple Fields
0: usize
Implementations
sourceimpl GlweDimension
impl GlweDimension
sourcepub fn to_glwe_size(&self) -> GlweSize
pub fn to_glwe_size(&self) -> GlweSize
Returns the associated GlweSize
.
Trait Implementations
sourceimpl Clone for GlweDimension
impl Clone for GlweDimension
sourcefn clone(&self) -> GlweDimension
fn clone(&self) -> GlweDimension
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 GlweDimension
impl Debug for GlweDimension
sourceimpl PartialEq<GlweDimension> for GlweDimension
impl PartialEq<GlweDimension> for GlweDimension
sourcefn eq(&self, other: &GlweDimension) -> bool
fn eq(&self, other: &GlweDimension) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlweDimension) -> bool
fn ne(&self, other: &GlweDimension) -> bool
This method tests for !=
.
impl Copy for GlweDimension
impl Eq for GlweDimension
impl StructuralEq for GlweDimension
impl StructuralPartialEq for GlweDimension
Auto Trait Implementations
impl RefUnwindSafe for GlweDimension
impl Send for GlweDimension
impl Sync for GlweDimension
impl Unpin for GlweDimension
impl UnwindSafe for GlweDimension
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