Enum folding::expressions::Degree
source · pub enum Degree {
Zero,
One,
Two,
}
Expand description
Describe the degree of a constraint.
As described in the top level documentation, we only
support constraints with degree up to 2
Variants§
Trait Implementations§
source§impl Ord for Degree
impl Ord for Degree
source§impl PartialEq<Degree> for Degree
impl PartialEq<Degree> for Degree
source§impl PartialOrd<Degree> for Degree
impl PartialOrd<Degree> for Degree
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 Copy for Degree
impl Eq for Degree
impl StructuralEq for Degree
impl StructuralPartialEq for Degree
Auto Trait Implementations§
impl RefUnwindSafe for Degree
impl Send for Degree
impl Sync for Degree
impl Unpin for Degree
impl UnwindSafe for Degree
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more