Struct arithmetic_eval::arith::Checked
source · pub struct Checked(/* private fields */);
Expand description
Marker for CheckedArithmetic
signalling that negation should be inherited
from the CheckedNeg
trait.
Trait Implementations§
source§impl<T: CheckedNeg> CheckedArithmeticKind<T> for Checked
impl<T: CheckedNeg> CheckedArithmeticKind<T> for Checked
source§fn checked_neg(value: T) -> Option<T>
fn checked_neg(value: T) -> Option<T>
Negates the provided
value
, or returns None
if the value cannot be negated.Auto Trait Implementations§
impl Freeze for Checked
impl RefUnwindSafe for Checked
impl Send for Checked
impl Sync for Checked
impl Unpin for Checked
impl UnwindSafe for Checked
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