pub enum Func {
}
Variants§
Sin(Expr)
ArcSin(Expr)
Cos(Expr)
ArcCos(Expr)
Tan(Expr)
ArcTan(Expr)
Sec(Expr)
ArcSec(Expr)
Cot(Expr)
ArcCot(Expr)
Csc(Expr)
ArcCsc(Expr)
Log(Real, Expr)
Implementations§
source§impl Func
impl Func
sourcepub fn unwrap_sin(self) -> Expr
pub fn unwrap_sin(self) -> Expr
Unwraps this value to the Func::Sin
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_sin_ref(&self) -> &Expr
pub fn unwrap_sin_ref(&self) -> &Expr
Unwraps this reference to the Func::Sin
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_sin(self) -> Expr
pub fn unwrap_arc_sin(self) -> Expr
Unwraps this value to the Func::ArcSin
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_sin_ref(&self) -> &Expr
pub fn unwrap_arc_sin_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcSin
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_cos(self) -> Expr
pub fn unwrap_cos(self) -> Expr
Unwraps this value to the Func::Cos
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_cos_ref(&self) -> &Expr
pub fn unwrap_cos_ref(&self) -> &Expr
Unwraps this reference to the Func::Cos
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_cos(self) -> Expr
pub fn unwrap_arc_cos(self) -> Expr
Unwraps this value to the Func::ArcCos
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_cos_ref(&self) -> &Expr
pub fn unwrap_arc_cos_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcCos
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_tan(self) -> Expr
pub fn unwrap_tan(self) -> Expr
Unwraps this value to the Func::Tan
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_tan_ref(&self) -> &Expr
pub fn unwrap_tan_ref(&self) -> &Expr
Unwraps this reference to the Func::Tan
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_tan(self) -> Expr
pub fn unwrap_arc_tan(self) -> Expr
Unwraps this value to the Func::ArcTan
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_tan_ref(&self) -> &Expr
pub fn unwrap_arc_tan_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcTan
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_sec(self) -> Expr
pub fn unwrap_sec(self) -> Expr
Unwraps this value to the Func::Sec
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_sec_ref(&self) -> &Expr
pub fn unwrap_sec_ref(&self) -> &Expr
Unwraps this reference to the Func::Sec
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_sec(self) -> Expr
pub fn unwrap_arc_sec(self) -> Expr
Unwraps this value to the Func::ArcSec
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_sec_ref(&self) -> &Expr
pub fn unwrap_arc_sec_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcSec
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_cot(self) -> Expr
pub fn unwrap_cot(self) -> Expr
Unwraps this value to the Func::Cot
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_cot_ref(&self) -> &Expr
pub fn unwrap_cot_ref(&self) -> &Expr
Unwraps this reference to the Func::Cot
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_cot(self) -> Expr
pub fn unwrap_arc_cot(self) -> Expr
Unwraps this value to the Func::ArcCot
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_cot_ref(&self) -> &Expr
pub fn unwrap_arc_cot_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcCot
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_csc(self) -> Expr
pub fn unwrap_csc(self) -> Expr
Unwraps this value to the Func::Csc
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_csc_ref(&self) -> &Expr
pub fn unwrap_csc_ref(&self) -> &Expr
Unwraps this reference to the Func::Csc
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_csc(self) -> Expr
pub fn unwrap_arc_csc(self) -> Expr
Unwraps this value to the Func::ArcCsc
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_arc_csc_ref(&self) -> &Expr
pub fn unwrap_arc_csc_ref(&self) -> &Expr
Unwraps this reference to the Func::ArcCsc
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_log(self) -> (Real, Expr)
pub fn unwrap_log(self) -> (Real, Expr)
Unwraps this value to the Func::Log
variant.
Panics if this value is of any other type.
sourcepub fn unwrap_log_ref(&self) -> (&Real, &Expr)
pub fn unwrap_log_ref(&self) -> (&Real, &Expr)
Unwraps this reference to the Func::Log
variant.
Panics if this value is of any other type.
source§impl Func
impl Func
sourcepub fn try_unwrap_sin(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_sin(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Sin
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_sin_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_sin_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Sin
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_sin(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_sin(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcSin
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_sin_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_sin_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcSin
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_cos(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_cos(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Cos
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_cos_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_cos_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Cos
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_cos(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_cos(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcCos
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_cos_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_cos_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcCos
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_tan(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_tan(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Tan
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_tan_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_tan_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Tan
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_tan(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_tan(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcTan
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_tan_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_tan_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcTan
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_sec(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_sec(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Sec
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_sec_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_sec_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Sec
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_sec(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_sec(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcSec
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_sec_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_sec_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcSec
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_cot(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_cot(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Cot
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_cot_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_cot_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Cot
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_cot(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_cot(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcCot
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_cot_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_cot_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcCot
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_csc(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_csc(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Csc
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_csc_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_csc_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Csc
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_csc(self) -> Result<Expr, TryUnwrapError<Self>>
pub fn try_unwrap_arc_csc(self) -> Result<Expr, TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::ArcCsc
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_arc_csc_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
pub fn try_unwrap_arc_csc_ref(&self) -> Result<&Expr, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::ArcCsc
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_log(self) -> Result<(Real, Expr), TryUnwrapError<Self>>
pub fn try_unwrap_log(self) -> Result<(Real, Expr), TryUnwrapError<Self>>
Attempts to unwrap this value to the Func::Log
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
sourcepub fn try_unwrap_log_ref(
&self,
) -> Result<(&Real, &Expr), TryUnwrapError<&Self>>
pub fn try_unwrap_log_ref( &self, ) -> Result<(&Real, &Expr), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the Func::Log
variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
source§impl Func
impl Func
sourcepub const fn is_sin(&self) -> bool
pub const fn is_sin(&self) -> bool
Returns true
if this value is of type Sin
. Returns false
otherwise
sourcepub const fn is_arc_sin(&self) -> bool
pub const fn is_arc_sin(&self) -> bool
Returns true
if this value is of type ArcSin
. Returns false
otherwise
sourcepub const fn is_cos(&self) -> bool
pub const fn is_cos(&self) -> bool
Returns true
if this value is of type Cos
. Returns false
otherwise
sourcepub const fn is_arc_cos(&self) -> bool
pub const fn is_arc_cos(&self) -> bool
Returns true
if this value is of type ArcCos
. Returns false
otherwise
sourcepub const fn is_tan(&self) -> bool
pub const fn is_tan(&self) -> bool
Returns true
if this value is of type Tan
. Returns false
otherwise
sourcepub const fn is_arc_tan(&self) -> bool
pub const fn is_arc_tan(&self) -> bool
Returns true
if this value is of type ArcTan
. Returns false
otherwise
sourcepub const fn is_sec(&self) -> bool
pub const fn is_sec(&self) -> bool
Returns true
if this value is of type Sec
. Returns false
otherwise
sourcepub const fn is_arc_sec(&self) -> bool
pub const fn is_arc_sec(&self) -> bool
Returns true
if this value is of type ArcSec
. Returns false
otherwise
sourcepub const fn is_cot(&self) -> bool
pub const fn is_cot(&self) -> bool
Returns true
if this value is of type Cot
. Returns false
otherwise
sourcepub const fn is_arc_cot(&self) -> bool
pub const fn is_arc_cot(&self) -> bool
Returns true
if this value is of type ArcCot
. Returns false
otherwise
sourcepub const fn is_csc(&self) -> bool
pub const fn is_csc(&self) -> bool
Returns true
if this value is of type Csc
. Returns false
otherwise
sourcepub const fn is_arc_csc(&self) -> bool
pub const fn is_arc_csc(&self) -> bool
Returns true
if this value is of type ArcCsc
. Returns false
otherwise
Trait Implementations§
source§impl<'de> Deserialize<'de> for Func
impl<'de> Deserialize<'de> for Func
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>,
source§impl Ord for Func
impl Ord for Func
source§impl PartialOrd for Func
impl PartialOrd for Func
source§impl SymbolicExpr for Func
impl SymbolicExpr for Func
source§fn reduce(&self) -> Expr
fn reduce(&self) -> Expr
fn args_mut(&mut self) -> &mut [Expr]
fn args(&self) -> &[Expr]
fn is_atom(&self) -> bool
fn n_args(&self) -> usize
fn iter_args(&self) -> impl Iterator<Item = &Expr>
fn map_args(self, map_fn: impl Fn(&mut Expr)) -> Self
impl Eq for Func
impl StructuralPartialEq for Func
Auto Trait Implementations§
impl Freeze for Func
impl RefUnwindSafe for Func
impl !Send for Func
impl !Sync for Func
impl Unpin for Func
impl UnwindSafe for Func
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
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)
clone_to_uninit
)