Skip to main content

Rate

Struct Rate 

Source
pub struct Rate(/* private fields */);
Expand description

Voice speaking rate

The value -100 represents the slowest supported speaking rate, 0 the default rate representing normal speech flow and 100 the fastest supported speaking rate.

Implementations§

Source§

impl Rate

Source

pub const MIN_VALUE: i8 = -100

The smallest value this bounded integer can contain.

Source

pub const MAX_VALUE: i8 = 100

The largest value that this bounded integer can contain.

Source

pub const MIN: Self

The smallest value of the bounded integer.

Source

pub const MAX: Self

The largest value of the bounded integer.

Source

pub const fn new(n: i8) -> Option<Self>

Creates a bounded integer if the given value is within the range [MIN, MAX].

Source

pub const fn const_new<const N: i8>() -> Self

Creates a bounded integer whose value is known at compile time.

Causes a compile-time error if N is not in the valid range.

Source

pub const fn new_ref(n: &i8) -> Option<&Self>

Creates a reference to a bounded integer from a reference to a primitive if the given value is within the range [MIN, MAX].

Source

pub const fn new_mut(n: &mut i8) -> Option<&mut Self>

Creates a mutable reference to a bounded integer from a mutable reference to a primitive if the given value is within the range [MIN, MAX].

Source

pub const unsafe fn new_unchecked(n: i8) -> Self

Creates a bounded integer without checking the value.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

Source

pub const unsafe fn new_ref_unchecked(n: &i8) -> &Self

Creates a shared reference to a bounded integer from a shared reference to a primitive.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

Source

pub const unsafe fn new_mut_unchecked(n: &mut i8) -> &mut Self

Creates a mutable reference to a bounded integer from a mutable reference to a primitive.

§Safety

The value must not be outside the valid range of values; it must not be less than MIN_VALUE or greater than MAX_VALUE.

Source

pub const fn in_range(n: i8) -> bool

Checks whether the given value is in the range of the bounded integer.

Source

pub const fn new_saturating(n: i8) -> Self

Creates a bounded integer by setting the value to MIN or MAX if it is too low or too high respectively.

Source

pub const fn new_wrapping<__Z: LargerInt>(n: __Z) -> Self

Creates a bounded integer by wrapping using modular arithmetic.

For n in range, this is an identity function, and it wraps for n out of range.

The type parameter Z must be any integer type that is a superset of this one.

Source

pub const fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseError>

Converts a string slice in a given base to the bounded integer.

§Panics

Panics if radix is below 2 or above 36.

Source

pub const fn get(self) -> i8

Returns the value of the bounded integer as a primitive type.

Source

pub const fn get_ref(&self) -> &i8

Returns a shared reference to the value of the bounded integer.

Source

pub const unsafe fn get_mut(&mut self) -> &mut i8

Returns a mutable reference to the value of the bounded integer.

§Safety

This value must never be set to a value beyond the range of the bounded integer.

Source

pub const fn abs(self) -> Self

Computes the absolute value of self, panicking if it is out of range.

Source

pub const fn pow(self, exp: u32) -> Self

Raises self to the power of exp, using exponentiation by squaring. Panics if it is out of range.

Source

pub const fn div_euclid(self, rhs: i8) -> Self

Calculates the quotient of Euclidean division of self by rhs. Panics if rhs is 0 or the result is out of range.

Source

pub const fn rem_euclid(self, rhs: i8) -> Self

Calculates the least nonnegative remainder of self (mod rhs). Panics if rhs is 0 or the result is out of range.

Source

pub const fn checked_add(self, rhs: i8) -> Option<Self>

Checked integer addition.

Returns None if the result would be out of range.

Source

pub const fn saturating_add(self, rhs: i8) -> Self

Saturating integer addition.

Source

pub const fn wrapping_add(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) integer addition.

Source

pub const fn checked_sub(self, rhs: i8) -> Option<Self>

Checked integer subtraction.

Returns None if the result would be out of range.

Source

pub const fn saturating_sub(self, rhs: i8) -> Self

Saturating integer subtraction.

Source

pub const fn wrapping_sub(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) integer subtraction.

Source

pub const fn checked_mul(self, rhs: i8) -> Option<Self>

Checked integer multiplication.

Returns None if the result would be out of range.

Source

pub const fn saturating_mul(self, rhs: i8) -> Self

Saturating integer multiplication.

Source

pub const fn wrapping_mul(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) integer multiplication.

Source

pub const fn checked_div(self, rhs: i8) -> Option<Self>

Checked integer division.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_div(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) integer division.

Source

pub const fn checked_div_euclid(self, rhs: i8) -> Option<Self>

Checked Euclidean division.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_div_euclid(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) Euclidean division.

Source

pub const fn checked_rem(self, rhs: i8) -> Option<Self>

Checked integer remainder.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_rem(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) integer remainder.

Source

pub const fn checked_rem_euclid(self, rhs: i8) -> Option<Self>

Checked Euclidean remainder.

Returns None if the result would be out of range, or if rhs is zero.

Source

pub const fn wrapping_rem_euclid(self, rhs: i8) -> Self

Available on not (nowhere).

Wrapping (modular) Euclidean remainder.

Source

pub const fn checked_neg(self) -> Option<Self>

Checked negation.

Returns None if the result would be out of range.

Source

pub const fn saturating_neg(self) -> Self

Available on not (nowhere).

Saturating negation.

Source

pub const fn wrapping_neg(self) -> Self

Available on not (nowhere).

Wrapping (modular) negation.

Source

pub const fn checked_abs(self) -> Option<Self>

Available on not (nowhere).

Checked absolute value.

Source

pub const fn saturating_abs(self) -> Self

Available on not (nowhere).

Saturating absolute value.

Source

pub const fn wrapping_abs(self) -> Self

Available on not (nowhere).

Wrapping (modular) absolute value.

Source

pub const fn checked_pow(self, rhs: u32) -> Option<Self>

Checked exponentiation.

Source

pub const fn saturating_pow(self, rhs: u32) -> Self

Saturating exponentiation.

Source

pub const fn wrapping_pow(self, exp: u32) -> Self

Available on not (nowhere).

Wrapping (modular) exponentiation.

Source

pub const fn checked_shl(self, rhs: u32) -> Option<Self>

Checked shift left.

Source

pub const fn checked_shr(self, rhs: u32) -> Option<Self>

Checked shift right.

Trait Implementations§

Source§

impl Add for Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &i8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Rate> for i8

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Rate) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the + operator.
Source§

fn add(self, rhs: i8) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for Rate

Source§

fn add_assign(&mut self, rhs: Rate)

Performs the += operation. Read more
Source§

impl AddAssign<&Rate> for i8

Source§

fn add_assign(&mut self, rhs: &Rate)

Performs the += operation. Read more
Source§

impl AddAssign<&Rate> for Rate

Source§

fn add_assign(&mut self, rhs: &Rate)

Performs the += operation. Read more
Source§

impl AddAssign<&i8> for Rate

Source§

fn add_assign(&mut self, rhs: &i8)

Performs the += operation. Read more
Source§

impl AddAssign<Rate> for i8

Source§

fn add_assign(&mut self, rhs: Rate)

Performs the += operation. Read more
Source§

impl AddAssign<i8> for Rate

Source§

fn add_assign(&mut self, rhs: i8)

Performs the += operation. Read more
Source§

impl AsRef<i8> for Rate

Source§

fn as_ref(&self) -> &i8

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Binary for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl BitAnd for Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &i8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &i8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<Rate> for i8

Source§

type Output = i8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Rate) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: i8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAnd<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: i8) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for Rate

Source§

fn bitand_assign(&mut self, rhs: Rate)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&Rate> for i8

Source§

fn bitand_assign(&mut self, rhs: &Rate)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&Rate> for Rate

Source§

fn bitand_assign(&mut self, rhs: &Rate)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&i8> for Rate

Source§

fn bitand_assign(&mut self, rhs: &i8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<Rate> for i8

Source§

fn bitand_assign(&mut self, rhs: Rate)

Performs the &= operation. Read more
Source§

impl BitAndAssign<i8> for Rate

Source§

fn bitand_assign(&mut self, rhs: i8)

Performs the &= operation. Read more
Source§

impl BitOr for Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &i8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &i8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<Rate> for i8

Source§

type Output = i8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Rate) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: i8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: i8) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for Rate

Source§

fn bitor_assign(&mut self, rhs: Rate)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&Rate> for i8

Source§

fn bitor_assign(&mut self, rhs: &Rate)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&Rate> for Rate

Source§

fn bitor_assign(&mut self, rhs: &Rate)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&i8> for Rate

Source§

fn bitor_assign(&mut self, rhs: &i8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<Rate> for i8

Source§

fn bitor_assign(&mut self, rhs: Rate)

Performs the |= operation. Read more
Source§

impl BitOrAssign<i8> for Rate

Source§

fn bitor_assign(&mut self, rhs: i8)

Performs the |= operation. Read more
Source§

impl BitXor for Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &i8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &i8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<Rate> for i8

Source§

type Output = i8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Rate) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: i8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXor<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: i8) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for Rate

Source§

fn bitxor_assign(&mut self, rhs: Rate)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&Rate> for i8

Source§

fn bitxor_assign(&mut self, rhs: &Rate)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&Rate> for Rate

Source§

fn bitxor_assign(&mut self, rhs: &Rate)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&i8> for Rate

Source§

fn bitxor_assign(&mut self, rhs: &i8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<Rate> for i8

Source§

fn bitxor_assign(&mut self, rhs: Rate)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<i8> for Rate

Source§

fn bitxor_assign(&mut self, rhs: i8)

Performs the ^= operation. Read more
Source§

impl Borrow<i8> for Rate

Source§

fn borrow(&self) -> &i8

Immutably borrows from an owned value. Read more
Source§

impl Clone for Rate

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Rate

Source§

impl Debug for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Rate

Available on not (nowhere).
Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div for Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &i8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Rate> for i8

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Rate) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the / operator.
Source§

fn div(self, rhs: i8) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for Rate

Source§

fn div_assign(&mut self, rhs: Rate)

Performs the /= operation. Read more
Source§

impl DivAssign<&Rate> for i8

Source§

fn div_assign(&mut self, rhs: &Rate)

Performs the /= operation. Read more
Source§

impl DivAssign<&Rate> for Rate

Source§

fn div_assign(&mut self, rhs: &Rate)

Performs the /= operation. Read more
Source§

impl DivAssign<&i8> for Rate

Source§

fn div_assign(&mut self, rhs: &i8)

Performs the /= operation. Read more
Source§

impl DivAssign<Rate> for i8

Source§

fn div_assign(&mut self, rhs: Rate)

Performs the /= operation. Read more
Source§

impl DivAssign<i8> for Rate

Source§

fn div_assign(&mut self, rhs: i8)

Performs the /= operation. Read more
Source§

impl Eq for Rate

Source§

impl From<Rate> for i8

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl From<Rate> for i16

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl From<Rate> for i32

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl From<Rate> for i64

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl From<Rate> for i128

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl From<Rate> for isize

Source§

fn from(bounded: Rate) -> Self

Converts to this type from the input type.
Source§

impl FromStr for Rate

Source§

type Err = ParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for Rate

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerExp for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl LowerHex for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Mul for Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &i8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Rate> for i8

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Rate) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: i8) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for Rate

Source§

fn mul_assign(&mut self, rhs: Rate)

Performs the *= operation. Read more
Source§

impl MulAssign<&Rate> for i8

Source§

fn mul_assign(&mut self, rhs: &Rate)

Performs the *= operation. Read more
Source§

impl MulAssign<&Rate> for Rate

Source§

fn mul_assign(&mut self, rhs: &Rate)

Performs the *= operation. Read more
Source§

impl MulAssign<&i8> for Rate

Source§

fn mul_assign(&mut self, rhs: &i8)

Performs the *= operation. Read more
Source§

impl MulAssign<Rate> for i8

Source§

fn mul_assign(&mut self, rhs: Rate)

Performs the *= operation. Read more
Source§

impl MulAssign<i8> for Rate

Source§

fn mul_assign(&mut self, rhs: i8)

Performs the *= operation. Read more
Source§

impl Neg for Rate

Available on not (nowhere).
Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for &Rate

Available on not (nowhere).
Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for Rate

Source§

type Output = Rate

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Not for &Rate

Source§

type Output = Rate

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl Octal for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for Rate

Source§

fn cmp(&self, other: &Rate) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Rate

Source§

fn eq(&self, other: &Rate) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<Rate> for i8

Source§

fn eq(&self, other: &Rate) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<i8> for Rate

Source§

fn eq(&self, other: &i8) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for Rate

Source§

fn partial_cmp(&self, other: &Rate) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Rate> for i8

Source§

fn partial_cmp(&self, other: &Rate) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<i8> for Rate

Source§

fn partial_cmp(&self, other: &i8) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Product for Rate

Source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<'__a> Product<&'__a Rate> for Rate

Source§

fn product<I: Iterator<Item = &'__a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl<'__a> Product<&'__a Rate> for i8

Source§

fn product<I: Iterator<Item = &'__a Rate>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Product<Rate> for i8

Source§

fn product<I: Iterator<Item = Rate>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

impl Rem for Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &i8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Rate> for i8

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Rate) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: i8) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign for Rate

Source§

fn rem_assign(&mut self, rhs: Rate)

Performs the %= operation. Read more
Source§

impl RemAssign<&Rate> for i8

Source§

fn rem_assign(&mut self, rhs: &Rate)

Performs the %= operation. Read more
Source§

impl RemAssign<&Rate> for Rate

Source§

fn rem_assign(&mut self, rhs: &Rate)

Performs the %= operation. Read more
Source§

impl RemAssign<&i8> for Rate

Source§

fn rem_assign(&mut self, rhs: &i8)

Performs the %= operation. Read more
Source§

impl RemAssign<Rate> for i8

Source§

fn rem_assign(&mut self, rhs: Rate)

Performs the %= operation. Read more
Source§

impl RemAssign<i8> for Rate

Source§

fn rem_assign(&mut self, rhs: i8)

Performs the %= operation. Read more
Source§

impl Shl<&u32> for Rate

Source§

type Output = Rate

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<&u32> for &Rate

Source§

type Output = Rate

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for Rate

Source§

type Output = Rate

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl Shl<u32> for &Rate

Source§

type Output = Rate

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self::Output

Performs the << operation. Read more
Source§

impl ShlAssign<&u32> for Rate

Source§

fn shl_assign(&mut self, rhs: &u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for Rate

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl Shr<&u32> for Rate

Source§

type Output = Rate

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<&u32> for &Rate

Source§

type Output = Rate

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for Rate

Source§

type Output = Rate

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl Shr<u32> for &Rate

Source§

type Output = Rate

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<&u32> for Rate

Source§

fn shr_assign(&mut self, rhs: &u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for Rate

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl Sub for Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Rate> for i8

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Rate> for &i8

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Rate> for Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&i8> for Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &i8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Rate> for i8

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Rate> for &i8

Source§

type Output = i8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<Rate> for &Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Rate) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i8> for Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<i8> for &Rate

Source§

type Output = Rate

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: i8) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for Rate

Source§

fn sub_assign(&mut self, rhs: Rate)

Performs the -= operation. Read more
Source§

impl SubAssign<&Rate> for i8

Source§

fn sub_assign(&mut self, rhs: &Rate)

Performs the -= operation. Read more
Source§

impl SubAssign<&Rate> for Rate

Source§

fn sub_assign(&mut self, rhs: &Rate)

Performs the -= operation. Read more
Source§

impl SubAssign<&i8> for Rate

Source§

fn sub_assign(&mut self, rhs: &i8)

Performs the -= operation. Read more
Source§

impl SubAssign<Rate> for i8

Source§

fn sub_assign(&mut self, rhs: Rate)

Performs the -= operation. Read more
Source§

impl SubAssign<i8> for Rate

Source§

fn sub_assign(&mut self, rhs: i8)

Performs the -= operation. Read more
Source§

impl Sum for Rate

Source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<'__a> Sum<&'__a Rate> for Rate

Source§

fn sum<I: Iterator<Item = &'__a Self>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl<'__a> Sum<&'__a Rate> for i8

Source§

fn sum<I: Iterator<Item = &'__a Rate>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl Sum<Rate> for i8

Source§

fn sum<I: Iterator<Item = Rate>>(iter: I) -> Self

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl TryFrom<Rate> for u8

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Rate> for u16

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Rate> for u32

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Rate> for u64

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Rate> for u128

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Rate> for usize

Source§

type Error = TryFromIntError

The type returned in the event of a conversion error.
Source§

fn try_from(n: Rate) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: i8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i16> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: i16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i32> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: i32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: i64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<i128> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: i128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<isize> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: isize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u8> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u16> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: u64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u128> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: u128) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for Rate

Source§

type Error = TryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(n: usize) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl UpperExp for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl UpperHex for Rate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Rate

§

impl RefUnwindSafe for Rate

§

impl Send for Rate

§

impl Sync for Rate

§

impl Unpin for Rate

§

impl UnsafeUnpin for Rate

§

impl UnwindSafe for Rate

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Free for T

Source§

unsafe fn free(ptr_ref: NonNull<T>)

Drops the content pointed by this pointer and frees it. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.