Acosh

Struct Acosh 

Source
pub struct Acosh { /* private fields */ }
Expand description

Acosh function.

Trait Implementations§

Source§

impl Debug for Acosh

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Evaluate for Acosh

Source§

fn eval(&self, args: &dyn GetVariable) -> Result<f64, EvaluationError>

Evaluates value of formula, args contains variables. Read more
Source§

impl Function for Acosh

Source§

const MIN_NUMBER_OF_ARGUMENTS: usize = 1usize

Minimal number of function arguments.
Source§

const MAX_NUMBER_OF_ARGUMENTS: usize = 1usize

Maximum number of function arguments.
Source§

const NAME: &'static str = "acosh"

Name of function.
Source§

fn parse<T: for<'a> GetFunction<'a>>( arguments: &[&str], formulas: &T, ) -> Result<Self, ParserError>
where Self: Sized,

Parses arguments and creates function. Read more
Source§

fn parse_into_box<T: for<'a> GetFunction<'a>>( arguments: &[&str], formulas: &T, ) -> Result<Box<dyn FunctionLike>, ParserError>
where Self: Sized + 'static,

Parses arguments and creates function stored in Box as trait object. Read more
Source§

impl FunctionLike for Acosh

Source§

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
Source§

fn set_all_variables_shared(&mut self, args: &dyn GetVariable)

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)

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.
Source§

fn set_variable_shared(&mut self, name: &Variable, function: &Arc<RootFormula>)

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)

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>

Creates clone of object stored in Box as trait object
Source§

impl IsConst for Acosh

Source§

fn is_const(&self) -> bool

Returns true if formula returns same value for every .eval(…) call, else returns false.

Auto Trait Implementations§

§

impl Freeze for Acosh

§

impl !RefUnwindSafe for Acosh

§

impl Send for Acosh

§

impl Sync for Acosh

§

impl Unpin for Acosh

§

impl !UnwindSafe for Acosh

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.