pub struct OnUnitInvariant<Input: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool>(/* private fields */);
Expand description
Terms on the unit interval (between 0 and 1), either inclusive or exclusive at each extreme.
Trait Implementations§
Source§impl<Input: Clone + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Clone for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Clone + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Clone for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§fn clone(&self) -> OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
fn clone(&self) -> OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
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 + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Debug for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Debug + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Debug for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§impl<Input: Default + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Default for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Default + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Default for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§fn default() -> OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
fn default() -> OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Returns the “default value” for a type. Read more
Source§impl<Input: Hash + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Hash for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Hash + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Hash for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§impl<Input: Ord + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Ord for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Ord + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Ord for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§fn cmp(
&self,
other: &OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>,
) -> Ordering
fn cmp( &self, other: &OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>, ) -> 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 + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> PartialEq for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: PartialEq + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> PartialEq for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§fn eq(
&self,
other: &OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>,
) -> bool
fn eq( &self, other: &OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl<Input: PartialOrd + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> PartialOrd for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: PartialOrd + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> PartialOrd for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§impl<Input: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Test<Input> for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Test<Input> for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Source§const ADJECTIVE: &str = "on the unit interval"
const ADJECTIVE: &str = "on the unit interval"
Adjective to describe this test:
for example, if we’re testing A,
then this is B in “A is not B.”
impl<Input: Copy + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Copy for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: Eq + One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Eq for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input: One + PartialOrd + Zero + Debug, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> StructuralPartialEq for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
Auto Trait Implementations§
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Freeze for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> RefUnwindSafe for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>where
Input: RefUnwindSafe,
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Send for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>where
Input: Send,
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Sync for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>where
Input: Sync,
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> Unpin for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>where
Input: Unpin,
impl<Input, const INCLUSIVE_AT_ZERO: bool, const INCLUSIVE_AT_ONE: bool> UnwindSafe for OnUnitInvariant<Input, INCLUSIVE_AT_ZERO, INCLUSIVE_AT_ONE>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