pub struct Calculator { /* private fields */ }Expand description
Core calculator implementing all arithmetic operations
Implementations§
Source§impl Calculator
impl Calculator
Sourcepub fn with_validator(validator: AnomalyValidator) -> Self
pub fn with_validator(validator: AnomalyValidator) -> Self
Creates a calculator with custom Anomaly validator
Trait Implementations§
Source§impl Debug for Calculator
impl Debug for Calculator
Source§impl Default for Calculator
impl Default for Calculator
Source§fn default() -> Calculator
fn default() -> Calculator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Calculator
impl RefUnwindSafe for Calculator
impl Send for Calculator
impl Sync for Calculator
impl Unpin for Calculator
impl UnsafeUnpin for Calculator
impl UnwindSafe for Calculator
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