Struct concrete::parameters::LweDimension
[−]pub struct LweDimension(pub usize);
Available on crate feature
shortints
and not (crate features booleans
and __newer_booleans
) only.Expand description
The number of scalar in an LWE mask, or the length of an LWE secret key.
Tuple Fields
0: usize
Implementations
impl LweDimension
impl LweDimension
pub fn to_lwe_size(&self) -> LweSize
pub fn to_lwe_size(&self) -> LweSize
Returns the associated [LweSize
].
Trait Implementations
impl Clone for LweDimension
impl Clone for LweDimension
fn 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
impl Debug for LweDimension
impl Debug for LweDimension
impl<'de> Deserialize<'de> for LweDimension
impl<'de> Deserialize<'de> for LweDimension
fn deserialize<__D>(
__deserializer: __D
) -> Result<LweDimension, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LweDimension, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<LweDimension> for LweDimension
impl PartialEq<LweDimension> for LweDimension
fn 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
fn ne(&self, other: &LweDimension) -> bool
fn ne(&self, other: &LweDimension) -> bool
This method tests for !=
.
impl Serialize for LweDimension
impl Serialize for LweDimension
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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