pub enum Saturating {}
Trait Implementations§
Source§impl Behavior for Saturating
impl Behavior for Saturating
fn add<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> Twhere
T: Add<Output = T> + 'static + Copy + Eq + Ord + InherentLimits<T>,
T::Output: Eq + Ord + Into<T>,
Saturating<T>: Add<Output = Saturating<T>>,
<Saturating<T> as Add>::Output: Eq + Ord + Into<Saturating<T>>,
fn sub<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> Twhere
T: Sub<Output = T> + 'static + Copy + Eq + Ord + InherentLimits<T>,
T::Output: Eq + Ord + Into<T>,
Saturating<T>: Sub<Output = Saturating<T>>,
<Saturating<T> as Sub>::Output: Eq + Ord + Into<Saturating<T>>,
fn mul<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> Twhere
T: Mul<Output = T> + 'static + Copy + Eq + Ord + InherentLimits<T>,
T::Output: Eq + Ord + Into<T>,
Saturating<T>: Mul<Output = Saturating<T>>,
<Saturating<T> as Mul>::Output: Eq + Ord + Into<Saturating<T>>,
fn div<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> Twhere
T: Div<Output = T> + 'static + Copy + Eq + Ord + InherentLimits<T>,
T::Output: Eq + Ord + Into<T>,
Saturating<T>: Div<Output = Saturating<T>>,
<Saturating<T> as Div>::Output: Eq + Ord + Into<Saturating<T>>,
fn rem<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> T
fn bitand<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> T
fn bitor<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> T
fn bitxor<T>(lhs: T, rhs: T, params: OpBehaviorParams<T>) -> T
fn neg<T>(val: T, params: OpBehaviorParams<T>) -> T
fn not<T>(val: T, params: OpBehaviorParams<T>) -> T
Source§impl Clone for Saturating
impl Clone for Saturating
Source§fn clone(&self) -> Saturating
fn clone(&self) -> Saturating
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 Debug for Saturating
impl Debug for Saturating
Source§impl Hash for Saturating
impl Hash for Saturating
Source§impl Ord for Saturating
impl Ord for Saturating
Source§fn cmp(&self, other: &Saturating) -> Ordering
fn cmp(&self, other: &Saturating) -> 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 PartialEq for Saturating
impl PartialEq for Saturating
Source§impl PartialOrd for Saturating
impl PartialOrd for Saturating
impl Copy for Saturating
impl Eq for Saturating
impl StructuralPartialEq for Saturating
Auto Trait Implementations§
impl Freeze for Saturating
impl RefUnwindSafe for Saturating
impl Send for Saturating
impl Sync for Saturating
impl Unpin for Saturating
impl UnwindSafe for Saturating
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