Struct concrete::parameters::LweDimension
[−]pub struct LweDimension(pub usize);
Available on crate feature
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl 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 Ord for LweDimension
impl Ord for LweDimension
fn cmp(&self, other: &LweDimension) -> Ordering
fn cmp(&self, other: &LweDimension) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<LweDimension> for LweDimension
impl PartialEq<LweDimension> for LweDimension
fn eq(&self, other: &LweDimension) -> bool
fn eq(&self, other: &LweDimension) -> bool
impl PartialOrd<LweDimension> for LweDimension
impl PartialOrd<LweDimension> for LweDimension
fn partial_cmp(&self, other: &LweDimension) -> Option<Ordering>
fn partial_cmp(&self, other: &LweDimension) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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