Enum calcu_rs::atom::Irrational
source · pub enum Irrational {
E,
PI,
}
Variants§
Implementations§
source§impl Irrational
impl Irrational
pub fn f64_approx(&self) -> f64
Trait Implementations§
source§impl Clone for Irrational
impl Clone for Irrational
source§fn clone(&self) -> Irrational
fn clone(&self) -> Irrational
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Irrational
impl Debug for Irrational
source§impl<'de> Deserialize<'de> for Irrational
impl<'de> Deserialize<'de> for Irrational
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Irrational
impl Display for Irrational
source§impl From<Irrational> for Atom
impl From<Irrational> for Atom
source§fn from(value: Irrational) -> Self
fn from(value: Irrational) -> Self
Converts to this type from the input type.
source§impl From<Irrational> for Real
impl From<Irrational> for Real
source§fn from(value: Irrational) -> Self
fn from(value: Irrational) -> Self
Converts to this type from the input type.
source§impl Hash for Irrational
impl Hash for Irrational
source§impl Ord for Irrational
impl Ord for Irrational
source§fn cmp(&self, other: &Irrational) -> Ordering
fn cmp(&self, other: &Irrational) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Irrational
impl PartialEq for Irrational
source§impl PartialOrd for Irrational
impl PartialOrd for Irrational
source§impl Serialize for Irrational
impl Serialize for Irrational
source§impl SymbolicExpr for Irrational
impl SymbolicExpr for Irrational
source§fn reduce(&self) -> Expr
fn reduce(&self) -> Expr
basic simplification that can be applied regardless of context Read more
fn is_atom(&self) -> bool
fn n_args(&self) -> usize
fn args(&self) -> &[Expr]
fn args_mut(&mut self) -> &mut [Expr]
fn iter_args(&self) -> impl Iterator<Item = &Expr>
fn map_args(self, map_fn: impl Fn(&mut Expr)) -> Self
impl Copy for Irrational
impl Eq for Irrational
impl StructuralPartialEq for Irrational
Auto Trait Implementations§
impl Freeze for Irrational
impl RefUnwindSafe for Irrational
impl Send for Irrational
impl Sync for Irrational
impl Unpin for Irrational
impl UnwindSafe for Irrational
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
)