pub enum IdealOrZero<I: Ideal> {
NonZero(I),
Zero,
}Expand description
Either a non-trivial ideal (from assert_in_ideal) or the zero ideal
(from assert_zero).
Variants§
Implementations§
Source§impl<I: Ideal> IdealOrZero<I>
impl<I: Ideal> IdealOrZero<I>
Trait Implementations§
Source§impl<I: Clone + Ideal> Clone for IdealOrZero<I>
impl<I: Clone + Ideal> Clone for IdealOrZero<I>
Source§fn clone(&self) -> IdealOrZero<I>
fn clone(&self) -> IdealOrZero<I>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Ideal> Display for IdealOrZero<I>
impl<I: Ideal> Display for IdealOrZero<I>
Source§impl<I: Ideal> FromRef<IdealOrZero<I>> for IdealOrZero<I>
impl<I: Ideal> FromRef<IdealOrZero<I>> for IdealOrZero<I>
fn from_ref(value: &IdealOrZero<I>) -> Self
Source§impl<'a, C: FieldConfig, const W: usize> IdealCheck<DynamicPolynomialConfig<'a, C>> for IdealOrZero<RotationIdeal<C::Element, W>>
impl<'a, C: FieldConfig, const W: usize> IdealCheck<DynamicPolynomialConfig<'a, C>> for IdealOrZero<RotationIdeal<C::Element, W>>
Source§fn contains(
&self,
cfg: &DynamicPolynomialConfig<'a, C>,
value: &DynamicPolynomial<C::Element>,
) -> Result<bool, IdealCheckError>
fn contains( &self, cfg: &DynamicPolynomialConfig<'a, C>, value: &DynamicPolynomial<C::Element>, ) -> Result<bool, IdealCheckError>
Returns true if the element belongs to this ideal.
Source§impl<I: Ideal> IdealCheck<FixedConfig<DummySemiring>> for IdealOrZero<I>
impl<I: Ideal> IdealCheck<FixedConfig<DummySemiring>> for IdealOrZero<I>
Source§fn contains(
&self,
_cfg: &DummySemiringConfig,
_value: &DummySemiring,
) -> Result<bool, IdealCheckError>
fn contains( &self, _cfg: &DummySemiringConfig, _value: &DummySemiring, ) -> Result<bool, IdealCheckError>
Returns true if the element belongs to this ideal.
impl<I: Copy + Ideal> Copy for IdealOrZero<I>
impl<I: Ideal> Ideal for IdealOrZero<I>
Auto Trait Implementations§
impl<I> Freeze for IdealOrZero<I>where
I: Freeze,
impl<I> RefUnwindSafe for IdealOrZero<I>where
I: RefUnwindSafe,
impl<I> Send for IdealOrZero<I>
impl<I> Sync for IdealOrZero<I>
impl<I> Unpin for IdealOrZero<I>where
I: Unpin,
impl<I> UnsafeUnpin for IdealOrZero<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for IdealOrZero<I>where
I: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more