Struct ElementCount
pub struct ElementCount(/* private fields */);Expand description
A positive element count.
Implementations§
§impl ElementCount
impl ElementCount
pub const ONE: ElementCount
pub const ONE: ElementCount
The implicit count for a term with no numeric suffix.
pub fn new(value: u32) -> Result<ElementCount, FormulaValidationError>
pub fn new(value: u32) -> Result<ElementCount, FormulaValidationError>
Creates a positive element count.
§Errors
Returns FormulaValidationError::ZeroCount when value is zero.
Trait Implementations§
§impl Clone for ElementCount
impl Clone for ElementCount
§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 more§impl Debug for ElementCount
impl Debug for ElementCount
§impl Default for ElementCount
impl Default for ElementCount
§fn default() -> ElementCount
fn default() -> ElementCount
Returns the “default value” for a type. Read more
§impl Display for ElementCount
impl Display for ElementCount
§impl Hash for ElementCount
impl Hash for ElementCount
§impl Ord for ElementCount
impl Ord for ElementCount
§impl PartialEq for ElementCount
impl PartialEq for ElementCount
§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