pub enum Degree {
Constant,
Linear,
Quadratic,
NonQuadratic,
}Expand description
The degree of an expression.
Variants§
Implementations§
source§impl 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§
source§impl From<Degree> for DegreeRange
impl From<Degree> for DegreeRange
source§fn from(degree: Degree) -> DegreeRange
fn from(degree: Degree) -> DegreeRange
Converts to this type from the input type.
source§impl Ord for Degree
impl Ord 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 more