pub enum Signed<T> {
Negative(T),
Positive(T),
}
Expand description
A signed wrapper.
This wrapper allows representing a signed value from a type which is originaly unsigned. In C APIs, this is represented by a tuple with a signed integer positive or negative and the absolute value.
Variants
Negative(T)
Positive(T)
Implementations
sourceimpl Signed<ClockTime>
impl Signed<ClockTime>
sourcepub fn from_nseconds(val: Signed<u64>) -> Self
pub fn from_nseconds(val: Signed<u64>) -> Self
Creates new value from nanoseconds.
sourcepub fn from_useconds(val: Signed<u64>) -> Self
pub fn from_useconds(val: Signed<u64>) -> Self
Creates new value from microseconds.
sourcepub fn from_mseconds(val: Signed<u64>) -> Self
pub fn from_mseconds(val: Signed<u64>) -> Self
Creates new value from milliseconds.
sourcepub fn from_seconds(val: Signed<u64>) -> Self
pub fn from_seconds(val: Signed<u64>) -> Self
Creates new value from seconds.
sourceimpl Signed<ClockTime>
impl Signed<ClockTime>
sourcepub fn into_inner_signed(self) -> Signed<u64>
pub fn into_inner_signed(self) -> Signed<u64>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<ClockTime>
impl Signed<ClockTime>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: ClockTime) -> Option<Self>
pub fn checked_sub_unsigned(self, other: ClockTime) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: ClockTime) -> Option<Self>
pub fn checked_add_unsigned(self, other: ClockTime) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: ClockTime) -> Self
pub fn saturating_sub_unsigned(self, other: ClockTime) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: ClockTime) -> Self
pub fn saturating_add_unsigned(self, other: ClockTime) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<ClockTime>
impl Signed<ClockTime>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl Signed<Other>
impl Signed<Other>
sourcepub fn into_inner_signed(self) -> Signed<u64>
pub fn into_inner_signed(self) -> Signed<u64>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<Other>
impl Signed<Other>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: Other) -> Option<Self>
pub fn checked_sub_unsigned(self, other: Other) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: Other) -> Option<Self>
pub fn checked_add_unsigned(self, other: Other) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: Other) -> Self
pub fn saturating_sub_unsigned(self, other: Other) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: Other) -> Self
pub fn saturating_add_unsigned(self, other: Other) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<Other>
impl Signed<Other>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl<T> Signed<T>
impl<T> Signed<T>
pub fn is_positive(self) -> bool
sourcepub fn positive(self) -> Option<T>
pub fn positive(self) -> Option<T>
Returns Some(value)
, where value
is the inner value,
if self
is positive.
sourcepub fn positive_or<E>(self, err: E) -> Result<T, E>
pub fn positive_or<E>(self, err: E) -> Result<T, E>
Transforms the Signed<T>
into a Result<T, E>
,
mapping Positive(v)
to Ok(v)
and Negative(_)
to Err(err)
.
sourcepub fn positive_or_else<E, F: FnOnce(T) -> E>(self, err: F) -> Result<T, E>
pub fn positive_or_else<E, F: FnOnce(T) -> E>(self, err: F) -> Result<T, E>
Transforms the Signed<T>
into a Result<T, E>
,
mapping Positive(v)
to Ok(v)
and Negative(v)
to Err(err(v))
.
pub fn is_negative(self) -> bool
sourcepub fn negative(self) -> Option<T>
pub fn negative(self) -> Option<T>
Returns Some(value)
, where value
is the inner value,
if self
is negative.
sourcepub fn negative_or<E>(self, err: E) -> Result<T, E>
pub fn negative_or<E>(self, err: E) -> Result<T, E>
Transforms the Signed<T>
into a Result<T, E>
,
mapping Negative(v)
to Ok(v)
and Positive(_)
to Err(err)
.
sourcepub fn negative_or_else<E, F: FnOnce(T) -> E>(self, err: F) -> Result<T, E>
pub fn negative_or_else<E, F: FnOnce(T) -> E>(self, err: F) -> Result<T, E>
Transforms the Signed<T>
into a Result<T, E>
,
mapping Negative(v)
to Ok(v)
and Positive(_)
to Err(err(v))
.
sourceimpl Signed<u64>
impl Signed<u64>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: u64) -> Option<Self>
pub fn checked_sub_unsigned(self, other: u64) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: u64) -> Option<Self>
pub fn checked_add_unsigned(self, other: u64) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: u64) -> Self
pub fn saturating_sub_unsigned(self, other: u64) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: u64) -> Self
pub fn saturating_add_unsigned(self, other: u64) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<u64>
impl Signed<u64>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl Signed<u32>
impl Signed<u32>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: u32) -> Option<Self>
pub fn checked_sub_unsigned(self, other: u32) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: u32) -> Option<Self>
pub fn checked_add_unsigned(self, other: u32) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: u32) -> Self
pub fn saturating_sub_unsigned(self, other: u32) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: u32) -> Self
pub fn saturating_add_unsigned(self, other: u32) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<u32>
impl Signed<u32>
pub fn checked_div(self, rhs: i32) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u32) -> Option<Self>
pub fn checked_rem(self, rhs: i32) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u32) -> Option<Self>
pub fn checked_mul(self, rhs: i32) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u32) -> Option<Self>
pub fn saturating_mul(self, rhs: i32) -> Self
pub fn saturating_mul_unsigned(self, rhs: u32) -> Self
sourceimpl Signed<Buffers>
impl Signed<Buffers>
sourcepub fn into_inner_signed(self) -> Signed<u64>
pub fn into_inner_signed(self) -> Signed<u64>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<Buffers>
impl Signed<Buffers>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: Buffers) -> Option<Self>
pub fn checked_sub_unsigned(self, other: Buffers) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: Buffers) -> Option<Self>
pub fn checked_add_unsigned(self, other: Buffers) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: Buffers) -> Self
pub fn saturating_sub_unsigned(self, other: Buffers) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: Buffers) -> Self
pub fn saturating_add_unsigned(self, other: Buffers) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<Buffers>
impl Signed<Buffers>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl Signed<Bytes>
impl Signed<Bytes>
sourcepub fn into_inner_signed(self) -> Signed<u64>
pub fn into_inner_signed(self) -> Signed<u64>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<Bytes>
impl Signed<Bytes>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: Bytes) -> Option<Self>
pub fn checked_sub_unsigned(self, other: Bytes) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: Bytes) -> Option<Self>
pub fn checked_add_unsigned(self, other: Bytes) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: Bytes) -> Self
pub fn saturating_sub_unsigned(self, other: Bytes) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: Bytes) -> Self
pub fn saturating_add_unsigned(self, other: Bytes) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<Bytes>
impl Signed<Bytes>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl Signed<Default>
impl Signed<Default>
sourcepub fn into_inner_signed(self) -> Signed<u64>
pub fn into_inner_signed(self) -> Signed<u64>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<Default>
impl Signed<Default>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: Default) -> Option<Self>
pub fn checked_sub_unsigned(self, other: Default) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: Default) -> Option<Self>
pub fn checked_add_unsigned(self, other: Default) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: Default) -> Self
pub fn saturating_sub_unsigned(self, other: Default) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: Default) -> Self
pub fn saturating_add_unsigned(self, other: Default) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<Default>
impl Signed<Default>
pub fn checked_div(self, rhs: i64) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_rem(self, rhs: i64) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u64) -> Option<Self>
pub fn checked_mul(self, rhs: i64) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u64) -> Option<Self>
pub fn saturating_mul(self, rhs: i64) -> Self
pub fn saturating_mul_unsigned(self, rhs: u64) -> Self
sourceimpl Signed<Percent>
impl Signed<Percent>
sourcepub fn into_inner_signed(self) -> Signed<u32>
pub fn into_inner_signed(self) -> Signed<u32>
Returns a Signed
containing the inner type of self
.
sourceimpl Signed<Percent>
impl Signed<Percent>
sourcepub fn signum(self) -> i32
pub fn signum(self) -> i32
Returns the signum for this Signed
.
Returns:
0
if the number is zero.1
if the value must be considered as positive.-1
if the value must be considered as negative.
sourcepub fn checked_sub(self, other: Self) -> Option<Self>
pub fn checked_sub(self, other: Self) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_sub_unsigned(self, other: Percent) -> Option<Self>
pub fn checked_sub_unsigned(self, other: Percent) -> Option<Self>
Returns the checked subtraction self - other
.
sourcepub fn checked_add(self, other: Self) -> Option<Self>
pub fn checked_add(self, other: Self) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn checked_add_unsigned(self, other: Percent) -> Option<Self>
pub fn checked_add_unsigned(self, other: Percent) -> Option<Self>
Returns the checked addition self + other
.
sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_sub_unsigned(self, other: Percent) -> Self
pub fn saturating_sub_unsigned(self, other: Percent) -> Self
Returns the saturating subtraction self - other
.
sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Returns the saturating addition self + other
.
sourcepub fn saturating_add_unsigned(self, other: Percent) -> Self
pub fn saturating_add_unsigned(self, other: Percent) -> Self
Returns the saturating addition self + other
.
sourceimpl Signed<Percent>
impl Signed<Percent>
pub fn checked_div(self, rhs: i32) -> Option<Self>
pub fn checked_div_unsigned(self, rhs: u32) -> Option<Self>
pub fn checked_rem(self, rhs: i32) -> Option<Self>
pub fn checked_rem_unsigned(self, rhs: u32) -> Option<Self>
pub fn checked_mul(self, rhs: i32) -> Option<Self>
pub fn checked_mul_unsigned(self, rhs: u32) -> Option<Self>
pub fn saturating_mul(self, rhs: i32) -> Self
pub fn saturating_mul_unsigned(self, rhs: u32) -> Self
Trait Implementations
sourceimpl AddAssign<Buffers> for Signed<Buffers>
impl AddAssign<Buffers> for Signed<Buffers>
sourcefn add_assign(&mut self, other: Buffers)
fn add_assign(&mut self, other: Buffers)
+=
operation. Read moresourceimpl AddAssign<Bytes> for Signed<Bytes>
impl AddAssign<Bytes> for Signed<Bytes>
sourcefn add_assign(&mut self, other: Bytes)
fn add_assign(&mut self, other: Bytes)
+=
operation. Read moresourceimpl AddAssign<ClockTime> for Signed<ClockTime>
impl AddAssign<ClockTime> for Signed<ClockTime>
sourcefn add_assign(&mut self, other: ClockTime)
fn add_assign(&mut self, other: ClockTime)
+=
operation. Read moresourceimpl AddAssign<Default> for Signed<Default>
impl AddAssign<Default> for Signed<Default>
sourcefn add_assign(&mut self, other: Default)
fn add_assign(&mut self, other: Default)
+=
operation. Read moresourceimpl AddAssign<Other> for Signed<Other>
impl AddAssign<Other> for Signed<Other>
sourcefn add_assign(&mut self, other: Other)
fn add_assign(&mut self, other: Other)
+=
operation. Read moresourceimpl AddAssign<Percent> for Signed<Percent>
impl AddAssign<Percent> for Signed<Percent>
sourcefn add_assign(&mut self, other: Percent)
fn add_assign(&mut self, other: Percent)
+=
operation. Read moresourceimpl AddAssign<Signed<Buffers>> for Signed<Buffers>
impl AddAssign<Signed<Buffers>> for Signed<Buffers>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<Bytes>> for Signed<Bytes>
impl AddAssign<Signed<Bytes>> for Signed<Bytes>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<ClockTime>> for Signed<ClockTime>
impl AddAssign<Signed<ClockTime>> for Signed<ClockTime>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<Default>> for Signed<Default>
impl AddAssign<Signed<Default>> for Signed<Default>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<Other>> for Signed<Other>
impl AddAssign<Signed<Other>> for Signed<Other>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<Percent>> for Signed<Percent>
impl AddAssign<Signed<Percent>> for Signed<Percent>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<u32>> for Signed<u32>
impl AddAssign<Signed<u32>> for Signed<u32>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<Signed<u64>> for Signed<u64>
impl AddAssign<Signed<u64>> for Signed<u64>
sourcefn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
+=
operation. Read moresourceimpl AddAssign<u32> for Signed<u32>
impl AddAssign<u32> for Signed<u32>
sourcefn add_assign(&mut self, other: u32)
fn add_assign(&mut self, other: u32)
+=
operation. Read moresourceimpl AddAssign<u64> for Signed<u64>
impl AddAssign<u64> for Signed<u64>
sourcefn add_assign(&mut self, other: u64)
fn add_assign(&mut self, other: u64)
+=
operation. Read moresourceimpl<'de, T> Deserialize<'de> for Signed<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Signed<T>where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl<T> Display for Signed<T>where
T: Display + SignedIntrinsic,
impl<T> Display for Signed<T>where
T: Display + SignedIntrinsic,
sourceimpl<T> Displayable for Signed<Option<T>>where
T: Display + SignedIntrinsic,
Option<T>: Displayable,
impl<T> Displayable for Signed<Option<T>>where
T: Display + SignedIntrinsic,
Option<T>: Displayable,
type DisplayImpl = DisplayableOptionSigned<T>
fn display(self) -> Self::DisplayImpl
sourceimpl<T> Displayable for Signed<T>where
T: Display + SignedIntrinsic,
impl<T> Displayable for Signed<T>where
T: Display + SignedIntrinsic,
type DisplayImpl = Signed<T>
fn display(self) -> Self::DisplayImpl
sourceimpl DivAssign<i32> for Signed<Percent>
impl DivAssign<i32> for Signed<Percent>
sourcefn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
/=
operation. Read moresourceimpl DivAssign<i32> for Signed<u32>
impl DivAssign<i32> for Signed<u32>
sourcefn div_assign(&mut self, rhs: i32)
fn div_assign(&mut self, rhs: i32)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<Buffers>
impl DivAssign<i64> for Signed<Buffers>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<Bytes>
impl DivAssign<i64> for Signed<Bytes>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<ClockTime>
impl DivAssign<i64> for Signed<ClockTime>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<Default>
impl DivAssign<i64> for Signed<Default>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<Other>
impl DivAssign<i64> for Signed<Other>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<i64> for Signed<u64>
impl DivAssign<i64> for Signed<u64>
sourcefn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
/=
operation. Read moresourceimpl DivAssign<u32> for Signed<Percent>
impl DivAssign<u32> for Signed<Percent>
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/=
operation. Read moresourceimpl DivAssign<u32> for Signed<u32>
impl DivAssign<u32> for Signed<u32>
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<Buffers>
impl DivAssign<u64> for Signed<Buffers>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<Bytes>
impl DivAssign<u64> for Signed<Bytes>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<ClockTime>
impl DivAssign<u64> for Signed<ClockTime>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<Default>
impl DivAssign<u64> for Signed<Default>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<Other>
impl DivAssign<u64> for Signed<Other>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl DivAssign<u64> for Signed<u64>
impl DivAssign<u64> for Signed<u64>
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
/=
operation. Read moresourceimpl MulAssign<i32> for Signed<Percent>
impl MulAssign<i32> for Signed<Percent>
sourcefn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
*=
operation. Read moresourceimpl MulAssign<i32> for Signed<u32>
impl MulAssign<i32> for Signed<u32>
sourcefn mul_assign(&mut self, rhs: i32)
fn mul_assign(&mut self, rhs: i32)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<Buffers>
impl MulAssign<i64> for Signed<Buffers>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<Bytes>
impl MulAssign<i64> for Signed<Bytes>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<ClockTime>
impl MulAssign<i64> for Signed<ClockTime>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<Default>
impl MulAssign<i64> for Signed<Default>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<Other>
impl MulAssign<i64> for Signed<Other>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<i64> for Signed<u64>
impl MulAssign<i64> for Signed<u64>
sourcefn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
*=
operation. Read moresourceimpl MulAssign<u32> for Signed<Percent>
impl MulAssign<u32> for Signed<Percent>
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*=
operation. Read moresourceimpl MulAssign<u32> for Signed<u32>
impl MulAssign<u32> for Signed<u32>
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<Buffers>
impl MulAssign<u64> for Signed<Buffers>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<Bytes>
impl MulAssign<u64> for Signed<Bytes>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<ClockTime>
impl MulAssign<u64> for Signed<ClockTime>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<Default>
impl MulAssign<u64> for Signed<Default>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<Other>
impl MulAssign<u64> for Signed<Other>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulAssign<u64> for Signed<u64>
impl MulAssign<u64> for Signed<u64>
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
*=
operation. Read moresourceimpl MulDiv<i32> for Signed<Percent>
impl MulDiv<i32> for Signed<Percent>
sourcefn mul_div_floor(self, num: i32, denom: i32) -> Option<Self>
fn mul_div_floor(self, num: i32, denom: i32) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i32, denom: i32) -> Option<Self>
fn mul_div_round(self, num: i32, denom: i32) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i32> for Signed<u32>
impl MulDiv<i32> for Signed<u32>
sourcefn mul_div_floor(self, num: i32, denom: i32) -> Option<Self>
fn mul_div_floor(self, num: i32, denom: i32) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i32, denom: i32) -> Option<Self>
fn mul_div_round(self, num: i32, denom: i32) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<Buffers>
impl MulDiv<i64> for Signed<Buffers>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<Bytes>
impl MulDiv<i64> for Signed<Bytes>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<ClockTime>
impl MulDiv<i64> for Signed<ClockTime>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<Default>
impl MulDiv<i64> for Signed<Default>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<Other>
impl MulDiv<i64> for Signed<Other>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<i64> for Signed<u64>
impl MulDiv<i64> for Signed<u64>
sourcefn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_floor(self, num: i64, denom: i64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
fn mul_div_round(self, num: i64, denom: i64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u32> for Signed<Percent>
impl MulDiv<u32> for Signed<Percent>
sourcefn mul_div_floor(self, num: u32, denom: u32) -> Option<Self>
fn mul_div_floor(self, num: u32, denom: u32) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u32, denom: u32) -> Option<Self>
fn mul_div_round(self, num: u32, denom: u32) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u32> for Signed<u32>
impl MulDiv<u32> for Signed<u32>
sourcefn mul_div_floor(self, num: u32, denom: u32) -> Option<Self>
fn mul_div_floor(self, num: u32, denom: u32) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u32, denom: u32) -> Option<Self>
fn mul_div_round(self, num: u32, denom: u32) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<Buffers>
impl MulDiv<u64> for Signed<Buffers>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<Bytes>
impl MulDiv<u64> for Signed<Bytes>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<ClockTime>
impl MulDiv<u64> for Signed<ClockTime>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<Default>
impl MulDiv<u64> for Signed<Default>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<Other>
impl MulDiv<u64> for Signed<Other>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl MulDiv<u64> for Signed<u64>
impl MulDiv<u64> for Signed<u64>
sourcefn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresourcefn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresourceimpl Ord for Signed<Buffers>
impl Ord for Signed<Buffers>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<Bytes>
impl Ord for Signed<Bytes>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<ClockTime>
impl Ord for Signed<ClockTime>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<Default>
impl Ord for Signed<Default>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<Other>
impl Ord for Signed<Other>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<Percent>
impl Ord for Signed<Percent>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<u32>
impl Ord for Signed<u32>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl Ord for Signed<u64>
impl Ord for Signed<u64>
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<Signed<Buffers>> for Buffers
impl PartialEq<Signed<Buffers>> for Buffers
sourceimpl PartialEq<Signed<ClockTime>> for ClockTime
impl PartialEq<Signed<ClockTime>> for ClockTime
sourceimpl PartialEq<Signed<Default>> for Default
impl PartialEq<Signed<Default>> for Default
sourceimpl PartialEq<Signed<Percent>> for Percent
impl PartialEq<Signed<Percent>> for Percent
sourceimpl<T: PartialEq> PartialEq<Signed<T>> for Signed<T>
impl<T: PartialEq> PartialEq<Signed<T>> for Signed<T>
sourceimpl PartialOrd<Buffers> for Signed<Buffers>
impl PartialOrd<Buffers> for Signed<Buffers>
sourcefn partial_cmp(&self, other: &Buffers) -> Option<Ordering>
fn partial_cmp(&self, other: &Buffers) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Bytes> for Signed<Bytes>
impl PartialOrd<Bytes> for Signed<Bytes>
sourcefn partial_cmp(&self, other: &Bytes) -> Option<Ordering>
fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<ClockTime> for Signed<ClockTime>
impl PartialOrd<ClockTime> for Signed<ClockTime>
sourcefn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Default> for Signed<Default>
impl PartialOrd<Default> for Signed<Default>
sourcefn partial_cmp(&self, other: &Default) -> Option<Ordering>
fn partial_cmp(&self, other: &Default) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Other> for Signed<Other>
impl PartialOrd<Other> for Signed<Other>
sourcefn partial_cmp(&self, other: &Other) -> Option<Ordering>
fn partial_cmp(&self, other: &Other) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Percent> for Signed<Percent>
impl PartialOrd<Percent> for Signed<Percent>
sourcefn partial_cmp(&self, other: &Percent) -> Option<Ordering>
fn partial_cmp(&self, other: &Percent) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Buffers>> for Buffers
impl PartialOrd<Signed<Buffers>> for Buffers
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Buffers>> for Signed<Buffers>
impl PartialOrd<Signed<Buffers>> for Signed<Buffers>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Bytes>> for Bytes
impl PartialOrd<Signed<Bytes>> for Bytes
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Bytes>> for Signed<Bytes>
impl PartialOrd<Signed<Bytes>> for Signed<Bytes>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<ClockTime>> for ClockTime
impl PartialOrd<Signed<ClockTime>> for ClockTime
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<ClockTime>> for Signed<ClockTime>
impl PartialOrd<Signed<ClockTime>> for Signed<ClockTime>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Default>> for Default
impl PartialOrd<Signed<Default>> for Default
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Default>> for Signed<Default>
impl PartialOrd<Signed<Default>> for Signed<Default>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Other>> for Other
impl PartialOrd<Signed<Other>> for Other
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Other>> for Signed<Other>
impl PartialOrd<Signed<Other>> for Signed<Other>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Percent>> for Percent
impl PartialOrd<Signed<Percent>> for Percent
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<Percent>> for Signed<Percent>
impl PartialOrd<Signed<Percent>> for Signed<Percent>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<u32>> for Signed<u32>
impl PartialOrd<Signed<u32>> for Signed<u32>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<u32>> for u32
impl PartialOrd<Signed<u32>> for u32
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<u64>> for Signed<u64>
impl PartialOrd<Signed<u64>> for Signed<u64>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<Signed<u64>> for u64
impl PartialOrd<Signed<u64>> for u64
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<u32> for Signed<u32>
impl PartialOrd<u32> for Signed<u32>
sourcefn partial_cmp(&self, other: &u32) -> Option<Ordering>
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl PartialOrd<u64> for Signed<u64>
impl PartialOrd<u64> for Signed<u64>
sourcefn partial_cmp(&self, other: &u64) -> Option<Ordering>
fn partial_cmp(&self, other: &u64) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl RemAssign<i32> for Signed<Percent>
impl RemAssign<i32> for Signed<Percent>
sourcefn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
%=
operation. Read moresourceimpl RemAssign<i32> for Signed<u32>
impl RemAssign<i32> for Signed<u32>
sourcefn rem_assign(&mut self, rhs: i32)
fn rem_assign(&mut self, rhs: i32)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<Buffers>
impl RemAssign<i64> for Signed<Buffers>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<Bytes>
impl RemAssign<i64> for Signed<Bytes>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<ClockTime>
impl RemAssign<i64> for Signed<ClockTime>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<Default>
impl RemAssign<i64> for Signed<Default>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<Other>
impl RemAssign<i64> for Signed<Other>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<i64> for Signed<u64>
impl RemAssign<i64> for Signed<u64>
sourcefn rem_assign(&mut self, rhs: i64)
fn rem_assign(&mut self, rhs: i64)
%=
operation. Read moresourceimpl RemAssign<u32> for Signed<Percent>
impl RemAssign<u32> for Signed<Percent>
sourcefn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
%=
operation. Read moresourceimpl RemAssign<u32> for Signed<u32>
impl RemAssign<u32> for Signed<u32>
sourcefn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<Buffers>
impl RemAssign<u64> for Signed<Buffers>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<Bytes>
impl RemAssign<u64> for Signed<Bytes>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<ClockTime>
impl RemAssign<u64> for Signed<ClockTime>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<Default>
impl RemAssign<u64> for Signed<Default>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<Other>
impl RemAssign<u64> for Signed<Other>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl RemAssign<u64> for Signed<u64>
impl RemAssign<u64> for Signed<u64>
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
%=
operation. Read moresourceimpl SubAssign<Buffers> for Signed<Buffers>
impl SubAssign<Buffers> for Signed<Buffers>
sourcefn sub_assign(&mut self, other: Buffers)
fn sub_assign(&mut self, other: Buffers)
-=
operation. Read moresourceimpl SubAssign<Bytes> for Signed<Bytes>
impl SubAssign<Bytes> for Signed<Bytes>
sourcefn sub_assign(&mut self, other: Bytes)
fn sub_assign(&mut self, other: Bytes)
-=
operation. Read moresourceimpl SubAssign<ClockTime> for Signed<ClockTime>
impl SubAssign<ClockTime> for Signed<ClockTime>
sourcefn sub_assign(&mut self, other: ClockTime)
fn sub_assign(&mut self, other: ClockTime)
-=
operation. Read moresourceimpl SubAssign<Default> for Signed<Default>
impl SubAssign<Default> for Signed<Default>
sourcefn sub_assign(&mut self, other: Default)
fn sub_assign(&mut self, other: Default)
-=
operation. Read moresourceimpl SubAssign<Other> for Signed<Other>
impl SubAssign<Other> for Signed<Other>
sourcefn sub_assign(&mut self, other: Other)
fn sub_assign(&mut self, other: Other)
-=
operation. Read moresourceimpl SubAssign<Percent> for Signed<Percent>
impl SubAssign<Percent> for Signed<Percent>
sourcefn sub_assign(&mut self, other: Percent)
fn sub_assign(&mut self, other: Percent)
-=
operation. Read moresourceimpl SubAssign<Signed<Buffers>> for Signed<Buffers>
impl SubAssign<Signed<Buffers>> for Signed<Buffers>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<Bytes>> for Signed<Bytes>
impl SubAssign<Signed<Bytes>> for Signed<Bytes>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<ClockTime>> for Signed<ClockTime>
impl SubAssign<Signed<ClockTime>> for Signed<ClockTime>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<Default>> for Signed<Default>
impl SubAssign<Signed<Default>> for Signed<Default>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<Other>> for Signed<Other>
impl SubAssign<Signed<Other>> for Signed<Other>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<Percent>> for Signed<Percent>
impl SubAssign<Signed<Percent>> for Signed<Percent>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<u32>> for Signed<u32>
impl SubAssign<Signed<u32>> for Signed<u32>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<Signed<u64>> for Signed<u64>
impl SubAssign<Signed<u64>> for Signed<u64>
sourcefn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
-=
operation. Read moresourceimpl SubAssign<u32> for Signed<u32>
impl SubAssign<u32> for Signed<u32>
sourcefn sub_assign(&mut self, other: u32)
fn sub_assign(&mut self, other: u32)
-=
operation. Read moresourceimpl SubAssign<u64> for Signed<u64>
impl SubAssign<u64> for Signed<u64>
sourcefn sub_assign(&mut self, other: u64)
fn sub_assign(&mut self, other: u64)
-=
operation. Read more