pub enum MathFn1 {
Show 26 variants
Abs,
Acos,
Acosh,
Asin,
Asinh,
Atan,
Atanh,
Buf,
Ceil,
Cos,
Cosh,
Exp,
Floor,
Int,
Inv,
Ln,
Log10,
Round,
Sgn,
Sin,
Sinh,
Sqrt,
Tan,
Tanh,
U,
Uramp,
}Expand description
One of the single-argument real waveform-arithmetic functions.
Variants§
Abs
Acos
Acosh
Asin
Asinh
Atan
Atanh
Buf
Ceil
Cos
Cosh
Exp
Floor
Int
Inv
Ln
Log10
Round
Sgn
Sin
Sinh
Sqrt
Tan
Tanh
U
Uramp
Implementations§
Source§impl MathFn1
impl MathFn1
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Matches the conventional lowercase function name exactly (case-sensitive).
Sourcepub fn name(self) -> &'static str
pub fn name(self) -> &'static str
The exact inverse of Self::from_name — the kind= keyword that selects this
function at the CLI level. Used for diagnostics that need to name this specific
function rather than the MathFn1 family as a whole, e.g. dae-runtime’s own
block_kind_name.
pub fn call(self, x: f64) -> f64
Trait Implementations§
impl Copy for MathFn1
impl Eq for MathFn1
impl StructuralPartialEq for MathFn1
Auto Trait Implementations§
impl Forget for MathFn1
impl Freeze for MathFn1
impl RefUnwindSafe for MathFn1
impl Send for MathFn1
impl Sync for MathFn1
impl Unpin for MathFn1
impl UnsafeUnpin for MathFn1
impl UnwindSafe for MathFn1
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