pub struct DecrementBy(pub u32);Expand description
Decrements a value by the given amount (e.g. in a Gauge)
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for DecrementBy
impl Clone for DecrementBy
Source§fn clone(&self) -> DecrementBy
fn clone(&self) -> DecrementBy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecrementBy
impl Debug for DecrementBy
Source§impl From<DecrementBy> for ObservedValue
impl From<DecrementBy> for ObservedValue
Source§fn from(v: DecrementBy) -> Self
fn from(v: DecrementBy) -> Self
Converts to this type from the input type.
impl Copy for DecrementBy
Auto Trait Implementations§
impl Freeze for DecrementBy
impl RefUnwindSafe for DecrementBy
impl Send for DecrementBy
impl Sync for DecrementBy
impl Unpin for DecrementBy
impl UnwindSafe for DecrementBy
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