pub enum Degree {
Constant,
Linear,
Quadratic,
NonQuadratic,
}Expand description
The degree of an expression.
Variants
Constant
Linear
Quadratic
NonQuadratic
Implementations
sourceimpl Degree
impl Degree
pub fn add(&self, other: &Degree) -> Degree
pub fn infix_sub(&self, other: &Degree) -> Degree
pub fn mul(&self, other: &Degree) -> Degree
pub fn pow(&self, other: &Degree) -> Degree
pub fn div(&self, other: &Degree) -> Degree
pub fn int_div(&self, other: &Degree) -> Degree
pub fn modulo(&self, other: &Degree) -> Degree
pub fn shift_left(&self, other: &Degree) -> Degree
pub fn shift_right(&self, other: &Degree) -> Degree
pub fn lesser(&self, other: &Degree) -> Degree
pub fn greater(&self, other: &Degree) -> Degree
pub fn lesser_eq(&self, other: &Degree) -> Degree
pub fn greater_eq(&self, other: &Degree) -> Degree
pub fn equal(&self, other: &Degree) -> Degree
pub fn not_equal(&self, other: &Degree) -> Degree
pub fn bit_or(&self, other: &Degree) -> Degree
pub fn bit_and(&self, other: &Degree) -> Degree
pub fn bit_xor(&self, other: &Degree) -> Degree
pub fn bool_or(&self, other: &Degree) -> Degree
pub fn bool_and(&self, other: &Degree) -> Degree
pub fn prefix_sub(&self) -> Degree
pub fn complement(&self) -> Degree
pub fn bool_not(&self) -> Degree
Trait Implementations
sourceimpl From<Degree> for DegreeRange
impl From<Degree> for DegreeRange
sourcefn from(degree: Degree) -> DegreeRange
fn from(degree: Degree) -> DegreeRange
Converts to this type from the input type.
sourceimpl Ord for Degree
impl Ord for Degree
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Degree> for Degree
impl PartialEq<Degree> for Degree
sourceimpl PartialOrd<Degree> for Degree
impl PartialOrd<Degree> for Degree
sourcefn partial_cmp(&self, other: &Degree) -> Option<Ordering>
fn partial_cmp(&self, other: &Degree) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl 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
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