pub struct PositiveInt(/* private fields */);Expand description
Integer value strictly greater than zero.
Implementations§
Source§impl PositiveInt
impl PositiveInt
Trait Implementations§
Source§impl Clone for PositiveInt
impl Clone for PositiveInt
Source§fn clone(&self) -> PositiveInt
fn clone(&self) -> PositiveInt
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 moreSource§impl Debug for PositiveInt
impl Debug for PositiveInt
Source§impl Display for PositiveInt
impl Display for PositiveInt
Source§impl From<PositiveInt> for u64
impl From<PositiveInt> for u64
Source§fn from(value: PositiveInt) -> Self
fn from(value: PositiveInt) -> Self
Converts to this type from the input type.
Source§impl Hash for PositiveInt
impl Hash for PositiveInt
Source§impl Ord for PositiveInt
impl Ord for PositiveInt
Source§fn cmp(&self, other: &PositiveInt) -> Ordering
fn cmp(&self, other: &PositiveInt) -> Ordering
1.21.0 (const: unstable) · 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 PositiveInt
impl PartialEq for PositiveInt
Source§fn eq(&self, other: &PositiveInt) -> bool
fn eq(&self, other: &PositiveInt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PositiveInt
impl PartialOrd for PositiveInt
Source§impl TryFrom<u64> for PositiveInt
impl TryFrom<u64> for PositiveInt
impl Copy for PositiveInt
impl Eq for PositiveInt
impl StructuralPartialEq for PositiveInt
Auto Trait Implementations§
impl Freeze for PositiveInt
impl RefUnwindSafe for PositiveInt
impl Send for PositiveInt
impl Sync for PositiveInt
impl Unpin for PositiveInt
impl UnsafeUnpin for PositiveInt
impl UnwindSafe for PositiveInt
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