pub struct PositiveInvariant<Input: Debug + PartialOrd + Zero>(/* private fields */);
Expand description
Positive terms (defined by comparison to zero).
Trait Implementations§
Source§impl<Input: Clone + Debug + PartialOrd + Zero> Clone for PositiveInvariant<Input>
impl<Input: Clone + Debug + PartialOrd + Zero> Clone for PositiveInvariant<Input>
Source§fn clone(&self) -> PositiveInvariant<Input>
fn clone(&self) -> PositiveInvariant<Input>
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<Input: Debug + Debug + PartialOrd + Zero> Debug for PositiveInvariant<Input>
impl<Input: Debug + Debug + PartialOrd + Zero> Debug for PositiveInvariant<Input>
Source§impl<Input: Default + Debug + PartialOrd + Zero> Default for PositiveInvariant<Input>
impl<Input: Default + Debug + PartialOrd + Zero> Default for PositiveInvariant<Input>
Source§fn default() -> PositiveInvariant<Input>
fn default() -> PositiveInvariant<Input>
Returns the “default value” for a type. Read more
Source§impl<Input: Hash + Debug + PartialOrd + Zero> Hash for PositiveInvariant<Input>
impl<Input: Hash + Debug + PartialOrd + Zero> Hash for PositiveInvariant<Input>
Source§impl<Input: Ord + Debug + PartialOrd + Zero> Ord for PositiveInvariant<Input>
impl<Input: Ord + Debug + PartialOrd + Zero> Ord for PositiveInvariant<Input>
Source§fn cmp(&self, other: &PositiveInvariant<Input>) -> Ordering
fn cmp(&self, other: &PositiveInvariant<Input>) -> 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<Input: PartialEq + Debug + PartialOrd + Zero> PartialEq for PositiveInvariant<Input>
impl<Input: PartialEq + Debug + PartialOrd + Zero> PartialEq for PositiveInvariant<Input>
Source§impl<Input: PartialOrd + Debug + PartialOrd + Zero> PartialOrd for PositiveInvariant<Input>
impl<Input: PartialOrd + Debug + PartialOrd + Zero> PartialOrd for PositiveInvariant<Input>
Source§impl<Input: Debug + PartialOrd + Zero> Test<Input> for PositiveInvariant<Input>
impl<Input: Debug + PartialOrd + Zero> Test<Input> for PositiveInvariant<Input>
Source§const ADJECTIVE: &str = "positive"
const ADJECTIVE: &str = "positive"
Adjective to describe this test:
for example, if we’re testing A,
then this is B in “A is not B.”
Source§type Error<'i> = NonPositive<'i, Input>
where
Input: 'i
type Error<'i> = NonPositive<'i, Input> where Input: 'i
An error implementing
::core::fmt::Display
.
If no error is ever provided, please use ::core::convert::Infallible
.impl<Input: Copy + Debug + PartialOrd + Zero> Copy for PositiveInvariant<Input>
impl<Input: Eq + Debug + PartialOrd + Zero> Eq for PositiveInvariant<Input>
impl<Input: Debug + PartialOrd + Zero> StructuralPartialEq for PositiveInvariant<Input>
Auto Trait Implementations§
impl<Input> Freeze for PositiveInvariant<Input>
impl<Input> RefUnwindSafe for PositiveInvariant<Input>where
Input: RefUnwindSafe,
impl<Input> Send for PositiveInvariant<Input>where
Input: Send,
impl<Input> Sync for PositiveInvariant<Input>where
Input: Sync,
impl<Input> Unpin for PositiveInvariant<Input>where
Input: Unpin,
impl<Input> UnwindSafe for PositiveInvariant<Input>where
Input: 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