Struct rustdds::dds::statusevents::CountWithChange
source · pub struct CountWithChange { /* private fields */ }
Expand description
Helper to contain same count actions across statuses
Implementations§
source§impl CountWithChange
impl CountWithChange
pub fn start_from(count: i32, count_change: i32) -> Self
pub fn count(&self) -> i32
pub fn count_change(&self) -> i32
Trait Implementations§
source§impl Clone for CountWithChange
impl Clone for CountWithChange
source§fn clone(&self) -> CountWithChange
fn clone(&self) -> CountWithChange
Returns a copy 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 CountWithChange
impl Debug for CountWithChange
source§impl PartialEq for CountWithChange
impl PartialEq for CountWithChange
source§fn eq(&self, other: &CountWithChange) -> bool
fn eq(&self, other: &CountWithChange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CountWithChange
impl Eq for CountWithChange
impl StructuralPartialEq for CountWithChange
Auto Trait Implementations§
impl Freeze for CountWithChange
impl RefUnwindSafe for CountWithChange
impl Send for CountWithChange
impl Sync for CountWithChange
impl Unpin for CountWithChange
impl UnwindSafe for CountWithChange
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