pub struct ValueRange<V> { /* private fields */ }
Trait Implementations§
Source§impl<V> Add<V> for ValueRange<V>
impl<V> Add<V> for ValueRange<V>
Source§impl Add<i32> for ValueRange<Saturating<u32>>
impl Add<i32> for ValueRange<Saturating<u32>>
Source§impl<V: AddAssign> AddAssign for ValueRange<V>
impl<V: AddAssign> AddAssign for ValueRange<V>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl<V: Clone> Clone for ValueRange<V>
impl<V: Clone> Clone for ValueRange<V>
Source§fn clone(&self) -> ValueRange<V>
fn clone(&self) -> ValueRange<V>
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 moreSource§impl<V: Debug> Debug for ValueRange<V>
impl<V: Debug> Debug for ValueRange<V>
Source§impl<V: Default> Default for ValueRange<V>
impl<V: Default> Default for ValueRange<V>
Source§fn default() -> ValueRange<V>
fn default() -> ValueRange<V>
Returns the “default value” for a type. Read more
Source§impl<V: Hash> Hash for ValueRange<V>
impl<V: Hash> Hash for ValueRange<V>
Source§impl<V: Ord> Ord for ValueRange<V>
impl<V: Ord> Ord for ValueRange<V>
Source§fn cmp(&self, other: &ValueRange<V>) -> Ordering
fn cmp(&self, other: &ValueRange<V>) -> 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<V: PartialEq> PartialEq for ValueRange<V>
impl<V: PartialEq> PartialEq for ValueRange<V>
Source§impl<V: PartialOrd> PartialOrd for ValueRange<V>
impl<V: PartialOrd> PartialOrd for ValueRange<V>
Source§impl<V> Sub<V> for ValueRange<V>
impl<V> Sub<V> for ValueRange<V>
impl<V: Copy> Copy for ValueRange<V>
impl<V: Eq> Eq for ValueRange<V>
impl<V> StructuralPartialEq for ValueRange<V>
Auto Trait Implementations§
impl<V> Freeze for ValueRange<V>where
V: Freeze,
impl<V> RefUnwindSafe for ValueRange<V>where
V: RefUnwindSafe,
impl<V> Send for ValueRange<V>where
V: Send,
impl<V> Sync for ValueRange<V>where
V: Sync,
impl<V> Unpin for ValueRange<V>where
V: Unpin,
impl<V> UnwindSafe for ValueRange<V>where
V: 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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.