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