pub enum FmtAtom {
Undef,
Rational(Rational),
Irrational(Irrational),
Var(String),
Sum(VecDeque<FmtAtom>),
Prod(VecDeque<FmtAtom>),
Pow(Box<FmtAtom>, Box<FmtAtom>),
Func(Func, Vec<FmtAtom>),
Fraction(Box<FmtAtom>, Box<FmtAtom>),
UnrySub(Box<FmtAtom>),
}
Variants§
Undef
Rational(Rational)
Irrational(Irrational)
Var(String)
Sum(VecDeque<FmtAtom>)
Prod(VecDeque<FmtAtom>)
Pow(Box<FmtAtom>, Box<FmtAtom>)
Func(Func, Vec<FmtAtom>)
Fraction(Box<FmtAtom>, Box<FmtAtom>)
UnrySub(Box<FmtAtom>)
Implementations§
source§impl FmtAtom
impl FmtAtom
sourcepub const fn is_undef(&self) -> bool
pub const fn is_undef(&self) -> bool
Returns true
if this value is of type Undef
. Returns false
otherwise
sourcepub const fn is_rational(&self) -> bool
pub const fn is_rational(&self) -> bool
Returns true
if this value is of type Rational
. Returns false
otherwise
sourcepub const fn is_irrational(&self) -> bool
pub const fn is_irrational(&self) -> bool
Returns true
if this value is of type Irrational
. Returns false
otherwise
sourcepub const fn is_var(&self) -> bool
pub const fn is_var(&self) -> bool
Returns true
if this value is of type Var
. Returns false
otherwise
sourcepub const fn is_sum(&self) -> bool
pub const fn is_sum(&self) -> bool
Returns true
if this value is of type Sum
. Returns false
otherwise
sourcepub const fn is_prod(&self) -> bool
pub const fn is_prod(&self) -> bool
Returns true
if this value is of type Prod
. Returns false
otherwise
sourcepub const fn is_pow(&self) -> bool
pub const fn is_pow(&self) -> bool
Returns true
if this value is of type Pow
. Returns false
otherwise
sourcepub const fn is_func(&self) -> bool
pub const fn is_func(&self) -> bool
Returns true
if this value is of type Func
. Returns false
otherwise
sourcepub const fn is_fraction(&self) -> bool
pub const fn is_fraction(&self) -> bool
Returns true
if this value is of type Fraction
. Returns false
otherwise
sourcepub const fn is_unry_sub(&self) -> bool
pub const fn is_unry_sub(&self) -> bool
Returns true
if this value is of type UnrySub
. Returns false
otherwise
Trait Implementations§
impl Eq for FmtAtom
impl StructuralPartialEq for FmtAtom
Auto Trait Implementations§
impl Freeze for FmtAtom
impl RefUnwindSafe for FmtAtom
impl !Send for FmtAtom
impl !Sync for FmtAtom
impl Unpin for FmtAtom
impl UnwindSafe for FmtAtom
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)