pub struct CounterState {
pub count: usize,
pub polarity: Polarity,
}Fields§
§count: usize§polarity: PolarityTrait Implementations§
Source§impl Clone for CounterState
impl Clone for CounterState
Source§fn clone(&self) -> CounterState
fn clone(&self) -> CounterState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CounterState
Source§impl Debug for CounterState
impl Debug for CounterState
Source§impl Default for CounterState
impl Default for CounterState
impl Eq for CounterState
Source§impl Hash for CounterState
impl Hash for CounterState
Source§impl PartialEq for CounterState
impl PartialEq for CounterState
Source§fn eq(&self, other: &CounterState) -> bool
fn eq(&self, other: &CounterState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CounterState
Auto Trait Implementations§
impl Freeze for CounterState
impl RefUnwindSafe for CounterState
impl Send for CounterState
impl Sync for CounterState
impl Unpin for CounterState
impl UnsafeUnpin for CounterState
impl UnwindSafe for CounterState
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