pub struct NonNegativeNum<T: Num + Clone + Copy + PartialOrd>(/* private fields */);
Implementations§
Source§impl<T: Num + Copy + PartialOrd> NonNegativeNum<T>
impl<T: Num + Copy + PartialOrd> NonNegativeNum<T>
pub fn new(value: T) -> Result<Self, NonNegativeNumError>
Source§impl<T: Num + PartialOrd + Copy> NonNegativeNum<T>
impl<T: Num + PartialOrd + Copy> NonNegativeNum<T>
Trait Implementations§
Source§impl<T: Clone + Num + Clone + Copy + PartialOrd> Clone for NonNegativeNum<T>
impl<T: Clone + Num + Clone + Copy + PartialOrd> Clone for NonNegativeNum<T>
Source§fn clone(&self) -> NonNegativeNum<T>
fn clone(&self) -> NonNegativeNum<T>
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<T: Debug + Num + Clone + Copy + PartialOrd> Debug for NonNegativeNum<T>
impl<T: Debug + Num + Clone + Copy + PartialOrd> Debug for NonNegativeNum<T>
Source§impl<T: PartialEq + Num + Clone + Copy + PartialOrd> PartialEq for NonNegativeNum<T>
impl<T: PartialEq + Num + Clone + Copy + PartialOrd> PartialEq for NonNegativeNum<T>
impl<T: Copy + Num + Clone + Copy + PartialOrd> Copy for NonNegativeNum<T>
impl<T: Eq + Num + Clone + Copy + PartialOrd> Eq for NonNegativeNum<T>
impl<T: Num + Clone + Copy + PartialOrd> StructuralPartialEq for NonNegativeNum<T>
Auto Trait Implementations§
impl<T> Freeze for NonNegativeNum<T>where
T: Freeze,
impl<T> RefUnwindSafe for NonNegativeNum<T>where
T: RefUnwindSafe,
impl<T> Send for NonNegativeNum<T>where
T: Send,
impl<T> Sync for NonNegativeNum<T>where
T: Sync,
impl<T> Unpin for NonNegativeNum<T>where
T: Unpin,
impl<T> UnwindSafe for NonNegativeNum<T>where
T: UnwindSafe,
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