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 for Degree
impl PartialOrd for Degree
impl Copy for Degree
impl Eq for Degree
impl StructuralPartialEq for Degree
Auto Trait Implementations§
impl Freeze for Degree
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