pub struct VariableCount(/* private fields */);Implementations§
Source§impl VariableCount
impl VariableCount
pub fn new(count: usize) -> Self
pub fn as_usize(&self) -> usize
pub fn is_zero(&self) -> bool
pub fn is_positive(&self) -> bool
pub fn increment(&mut self)
pub fn decrement(&mut self)
pub fn add(&self, other: VariableCount) -> Self
pub fn sub(&self, other: VariableCount) -> Self
Trait Implementations§
Source§impl Add for VariableCount
impl Add for VariableCount
Source§impl Clone for VariableCount
impl Clone for VariableCount
Source§fn clone(&self) -> VariableCount
fn clone(&self) -> VariableCount
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 VariableCount
impl Debug for VariableCount
Source§impl<'de> Deserialize<'de> for VariableCount
impl<'de> Deserialize<'de> for VariableCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VariableCount
impl Display for VariableCount
Source§impl From<VariableCount> for usize
impl From<VariableCount> for usize
Source§fn from(count: VariableCount) -> Self
fn from(count: VariableCount) -> Self
Converts to this type from the input type.
Source§impl From<usize> for VariableCount
impl From<usize> for VariableCount
Source§impl Hash for VariableCount
impl Hash for VariableCount
Source§impl PartialEq for VariableCount
impl PartialEq for VariableCount
Source§impl Serialize for VariableCount
impl Serialize for VariableCount
Source§impl Sub for VariableCount
impl Sub for VariableCount
impl Copy for VariableCount
impl Eq for VariableCount
impl StructuralPartialEq for VariableCount
Auto Trait Implementations§
impl Freeze for VariableCount
impl RefUnwindSafe for VariableCount
impl Send for VariableCount
impl Sync for VariableCount
impl Unpin for VariableCount
impl UnwindSafe for VariableCount
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