Enum currencies::safety::Checked
source · pub enum Checked {}
Expand description
Enforces using only checked arithmetic operations with this Amount
.
This is a zero-sized enum and therefore cannot be instantiated. It can only be used in type bounds.
Trait Implementations§
source§impl Ord for Checked
impl Ord for Checked
source§impl PartialEq for Checked
impl PartialEq for Checked
source§impl PartialOrd for Checked
impl PartialOrd for Checked
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Checked
impl Eq for Checked
impl StructuralPartialEq for Checked
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