Struct concrete::parameters::GlweDimension
[−]pub struct GlweDimension(pub usize);
Available on crate feature
booleans
only.Expand description
The number of polynomials of an GLWE mask, or the size of an GLWE secret key.
Tuple Fields
0: usize
Implementations
impl GlweDimension
impl GlweDimension
pub fn to_glwe_size(&self) -> GlweSize
pub fn to_glwe_size(&self) -> GlweSize
Returns the associated [GlweSize
].
Trait Implementations
impl Clone for GlweDimension
impl Clone for GlweDimension
fn clone(&self) -> GlweDimension
fn clone(&self) -> GlweDimension
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 GlweDimension
impl Debug for GlweDimension
impl<'de> Deserialize<'de> for GlweDimension
impl<'de> Deserialize<'de> for GlweDimension
fn deserialize<__D>(
__deserializer: __D
) -> Result<GlweDimension, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GlweDimension, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Ord for GlweDimension
impl Ord for GlweDimension
fn cmp(&self, other: &GlweDimension) -> Ordering
fn cmp(&self, other: &GlweDimension) -> 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<GlweDimension> for GlweDimension
impl PartialEq<GlweDimension> for GlweDimension
fn eq(&self, other: &GlweDimension) -> bool
fn eq(&self, other: &GlweDimension) -> bool
impl PartialOrd<GlweDimension> for GlweDimension
impl PartialOrd<GlweDimension> for GlweDimension
fn partial_cmp(&self, other: &GlweDimension) -> Option<Ordering>
fn partial_cmp(&self, other: &GlweDimension) -> 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 GlweDimension
impl Serialize for GlweDimension
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 GlweDimension
impl Eq for GlweDimension
impl StructuralEq for GlweDimension
impl StructuralPartialEq for GlweDimension
Auto Trait Implementations
impl RefUnwindSafe for GlweDimension
impl Send for GlweDimension
impl Sync for GlweDimension
impl Unpin for GlweDimension
impl UnwindSafe for GlweDimension
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