Struct arithmetic_eval::arith::Unchecked
source · pub struct Unchecked(/* private fields */);
Expand description
Marker for CheckedArithmetic
signalling that negation should be inherited from
the Neg
trait. This is appropriate if Neg
never panics (e.g.,
for signed big integers).
Trait Implementations§
source§impl<T: Signed> CheckedArithmeticKind<T> for Unchecked
impl<T: Signed> CheckedArithmeticKind<T> for Unchecked
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 Unchecked
impl RefUnwindSafe for Unchecked
impl Send for Unchecked
impl Sync for Unchecked
impl Unpin for Unchecked
impl UnwindSafe for Unchecked
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