pub struct Cos {}
Trait Implementations§
Source§impl FunctionLogic for Cos
impl FunctionLogic for Cos
const FUNCTION_TYPE: FunctionType = FunctionType::Cos
fn validate_load(x_in: Decimal, y_in: Decimal) -> Result<(Decimal, ValueCode)>
fn eval( fd: &FunctionData, x_in: Decimal, interp: Interpolation, saturating: bool, ) -> Result<Decimal>
fn proportion_difference(a: Decimal, b: Decimal) -> Result<Decimal>
fn interpolate( fd: &FunctionData, x: Decimal, interp: Interpolation, ) -> Result<Decimal>
Auto Trait Implementations§
impl Freeze for Cos
impl RefUnwindSafe for Cos
impl Send for Cos
impl Sync for Cos
impl Unpin for Cos
impl UnwindSafe for Cos
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more