pub struct Atan { /* private fields */ }Expand description
Atan function.
Trait Implementations§
Source§impl Evaluate for Atan
impl Evaluate for Atan
Source§fn eval(&self, args: &dyn GetVariable) -> Result<f64, EvaluationError>
fn eval(&self, args: &dyn GetVariable) -> Result<f64, EvaluationError>
Evaluates value of formula, args contains variables. Read more
Source§impl Function for Atan
impl Function for Atan
Source§const MIN_NUMBER_OF_ARGUMENTS: usize = 1usize
const MIN_NUMBER_OF_ARGUMENTS: usize = 1usize
Minimal number of function arguments.
Source§const MAX_NUMBER_OF_ARGUMENTS: usize = 1usize
const MAX_NUMBER_OF_ARGUMENTS: usize = 1usize
Maximum number of function arguments.
Source§fn parse<T: for<'a> GetFunction<'a>>(
arguments: &[&str],
formulas: &T,
) -> Result<Self, ParserError>where
Self: Sized,
fn parse<T: for<'a> GetFunction<'a>>(
arguments: &[&str],
formulas: &T,
) -> Result<Self, ParserError>where
Self: Sized,
Parses
arguments and creates function. Read moreSource§fn parse_into_box<T: for<'a> GetFunction<'a>>(
arguments: &[&str],
formulas: &T,
) -> Result<Box<dyn FunctionLike>, ParserError>where
Self: Sized + 'static,
fn parse_into_box<T: for<'a> GetFunction<'a>>(
arguments: &[&str],
formulas: &T,
) -> Result<Box<dyn FunctionLike>, ParserError>where
Self: Sized + 'static,
Source§impl FunctionLike for Atan
impl FunctionLike for Atan
Source§fn collapse_inner(&mut self) -> Result<(), MathError>
fn collapse_inner(&mut self) -> Result<(), MathError>
Simplifies function arguments. For example if one of the function arguments is “1 + 2”,
this method will simplify it to “3” Read more
Sets variables present in function to formulas stored in
args as shared function.
If function has some inner state and set as shared in different formulas, inner state will be shared.Source§fn set_all_variables_owned(&mut self, args: &dyn GetVariable)
fn set_all_variables_owned(&mut self, args: &dyn GetVariable)
Sets variables present in function to formulas stored in
args as owned function.
If function has some inner state and set as owned in different formulas, inner state will be different.Sets variable
name in function to function as shared function.
If function has some inner state and set as shared in different formulas, inner state will be shared.Source§fn set_variable_owned(&mut self, name: &Variable, function: &RootFormula)
fn set_variable_owned(&mut self, name: &Variable, function: &RootFormula)
Sets variable
name in function to function as owned function.
If function has some inner state and set as owned in different formulas, inner state will be different.Source§fn clone_into_box(&self) -> Box<dyn FunctionLike>
fn clone_into_box(&self) -> Box<dyn FunctionLike>
Creates clone of object stored in
Box as trait objectAuto Trait Implementations§
impl Freeze for Atan
impl !RefUnwindSafe for Atan
impl Send for Atan
impl Sync for Atan
impl Unpin for Atan
impl !UnwindSafe for Atan
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