Struct concrete_commons::parameters::LweSize
source · [−]pub struct LweSize(pub usize);
Expand description
The number of scalars in an LWE ciphertext, i.e. the number of scalar in an LWE mask plus one.
Tuple Fields
0: usize
Implementations
sourceimpl LweSize
impl LweSize
sourcepub fn to_lwe_dimension(&self) -> LweDimension
pub fn to_lwe_dimension(&self) -> LweDimension
Returns the associated LweDimension
.
Trait Implementations
impl Copy for LweSize
impl Eq for LweSize
impl StructuralEq for LweSize
impl StructuralPartialEq for LweSize
Auto Trait Implementations
impl RefUnwindSafe for LweSize
impl Send for LweSize
impl Sync for LweSize
impl Unpin for LweSize
impl UnwindSafe for LweSize
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