pub struct ElementCount(/* private fields */);Expand description
A positive element count.
Implementations§
Source§impl ElementCount
impl ElementCount
Sourcepub fn new(value: u32) -> Result<Self, FormulaValidationError>
pub fn new(value: u32) -> Result<Self, FormulaValidationError>
Creates a positive element count.
§Errors
Returns FormulaValidationError::ZeroCount when value is zero.
Trait Implementations§
Source§impl Clone for ElementCount
impl Clone for ElementCount
Source§fn clone(&self) -> ElementCount
fn clone(&self) -> ElementCount
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 ElementCount
impl Debug for ElementCount
Source§impl Default for ElementCount
impl Default for ElementCount
Source§impl Display for ElementCount
impl Display for ElementCount
Source§impl Hash for ElementCount
impl Hash for ElementCount
Source§impl Ord for ElementCount
impl Ord for ElementCount
Source§fn cmp(&self, other: &ElementCount) -> Ordering
fn cmp(&self, other: &ElementCount) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElementCount
impl PartialEq for ElementCount
Source§impl PartialOrd for ElementCount
impl PartialOrd for ElementCount
impl Copy for ElementCount
impl Eq for ElementCount
impl StructuralPartialEq for ElementCount
Auto Trait Implementations§
impl Freeze for ElementCount
impl RefUnwindSafe for ElementCount
impl Send for ElementCount
impl Sync for ElementCount
impl Unpin for ElementCount
impl UnsafeUnpin for ElementCount
impl UnwindSafe for ElementCount
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