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: usizeImplementations§
Source§impl LweDimension
impl LweDimension
Sourcepub fn to_lwe_size(&self) -> LweSize
pub fn to_lwe_size(&self) -> LweSize
Returns the associated LweSize.
Trait Implementations§
Source§impl Clone for LweDimension
impl Clone for LweDimension
Source§fn clone(&self) -> LweDimension
fn clone(&self) -> LweDimension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LweDimension
impl Debug for LweDimension
Source§impl PartialEq for LweDimension
impl PartialEq for LweDimension
impl Copy for LweDimension
impl Eq for LweDimension
impl StructuralPartialEq for LweDimension
Auto Trait Implementations§
impl Freeze for LweDimension
impl RefUnwindSafe for LweDimension
impl Send for LweDimension
impl Sync for LweDimension
impl Unpin for LweDimension
impl UnwindSafe for LweDimension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more