Struct F128Bits

Source
#[repr(transparent)]
pub struct F128Bits(pub u128);
๐Ÿ‘ŽDeprecated since 1.18.0: use F128 instead
Expand description

The bit representation of a binary128 floating-point number (f128).

This type can be used to

  • convert between fixed-point numbers and the bit representation of 128-bit floating-point numbers.
  • compare fixed-point numbers and the bit representation of 128-bit floating-point numbers.

This is deprecated, and F128 should be used instead. There are two main differences to keep in mind when switching to F128:

  • The ordering for F128Bits is total ordering, not regular floating-point number ordering, while the ordering for F128 is similar to ordering for standard floating-point numbers.
  • The underlying u128 value for F128Bits is accessible as a public field, while for F128 it is accessible only through the to_bits and from_bits methods.

Tuple Fieldsยง

ยง0: u128
๐Ÿ‘ŽDeprecated since 1.18.0: use F128 instead

Trait Implementationsยง

Sourceยง

impl<Frac: LeEqU128> Cast<F128Bits> for FixedI128<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> Cast<F128Bits> for FixedI16<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> Cast<F128Bits> for FixedI32<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> Cast<F128Bits> for FixedI64<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> Cast<F128Bits> for FixedI8<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> Cast<F128Bits> for FixedU128<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> Cast<F128Bits> for FixedU16<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> Cast<F128Bits> for FixedU32<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> Cast<F128Bits> for FixedU64<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> Cast<F128Bits> for FixedU8<Frac>

Sourceยง

fn cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> Cast<FixedI128<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedI128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> Cast<FixedI16<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedI16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> Cast<FixedI32<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedI32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> Cast<FixedI64<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedI64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> Cast<FixedI8<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedI8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> Cast<FixedU128<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedU128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> Cast<FixedU16<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedU16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> Cast<FixedU32<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedU32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> Cast<FixedU64<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedU64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> Cast<FixedU8<Frac>> for F128Bits

Sourceยง

fn cast(self) -> FixedU8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> CheckedCast<F128Bits> for FixedI128<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> CheckedCast<F128Bits> for FixedI16<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> CheckedCast<F128Bits> for FixedI32<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> CheckedCast<F128Bits> for FixedI64<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> CheckedCast<F128Bits> for FixedI8<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> CheckedCast<F128Bits> for FixedU128<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> CheckedCast<F128Bits> for FixedU16<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> CheckedCast<F128Bits> for FixedU32<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> CheckedCast<F128Bits> for FixedU64<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> CheckedCast<F128Bits> for FixedU8<Frac>

Sourceยง

fn checked_cast(self) -> Option<F128Bits>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> CheckedCast<FixedI128<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedI128<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> CheckedCast<FixedI16<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedI16<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> CheckedCast<FixedI32<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedI32<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> CheckedCast<FixedI64<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedI64<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> CheckedCast<FixedI8<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedI8<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> CheckedCast<FixedU128<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedU128<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> CheckedCast<FixedU16<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedU16<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> CheckedCast<FixedU32<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedU32<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> CheckedCast<FixedU64<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedU64<Frac>>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> CheckedCast<FixedU8<Frac>> for F128Bits

Sourceยง

fn checked_cast(self) -> Option<FixedU8<Frac>>

Casts the value.
Sourceยง

impl Clone for F128Bits

Sourceยง

fn clone(&self) -> F128Bits

Returns a copy of the value. Read more
1.0.0 ยท Sourceยง

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

Performs copy-assignment from source. Read more
Sourceยง

impl Debug for F128Bits

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Default for F128Bits

Sourceยง

fn default() -> F128Bits

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl<Frac: LeEqU16> From<FixedI16<Frac>> for F128Bits

Sourceยง

fn from(src: FixedI16<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU32> From<FixedI32<Frac>> for F128Bits

Sourceยง

fn from(src: FixedI32<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU64> From<FixedI64<Frac>> for F128Bits

Sourceยง

fn from(src: FixedI64<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU8> From<FixedI8<Frac>> for F128Bits

Sourceยง

fn from(src: FixedI8<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU16> From<FixedU16<Frac>> for F128Bits

Sourceยง

fn from(src: FixedU16<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU32> From<FixedU32<Frac>> for F128Bits

Sourceยง

fn from(src: FixedU32<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU64> From<FixedU64<Frac>> for F128Bits

Sourceยง

fn from(src: FixedU64<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU8> From<FixedU8<Frac>> for F128Bits

Sourceยง

fn from(src: FixedU8<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) and does not lose any precision (lossless).

Sourceยง

impl FromFixed for F128Bits

Sourceยง

fn from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number to a floating-point number.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

When debug assertions are enabled, panics if the value does not fit. When debug assertions are not enabled, the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_from_fixed instead.

Sourceยง

fn checked_from_fixed<F: Fixed>(src: F) -> Option<Self>

Converts a fixed-point number to a floating-point number if it fits, otherwise returns None.

Rounding is to the nearest, with ties rounded to even.

Sourceยง

fn saturating_from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number to a floating-point number, saturating if it does not fit.

Rounding is to the nearest, with ties rounded to even.

Sourceยง

fn wrapping_from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number to a floating-point number, wrapping if it does not fit.

Rounding is to the nearest, with ties rounded to even.

Sourceยง

fn overflowing_from_fixed<F: Fixed>(src: F) -> (Self, bool)

Converts a fixed-point number to a floating-point number.

Returns a tuple of the value and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

Sourceยง

fn unwrapped_from_fixed<F: Fixed>(src: F) -> Self

Converts a fixed-point number to a floating-point number, panicking if it does not fit.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if the value does not fit, even when debug assertions are not enabled.

Sourceยง

impl Hash for F128Bits

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<Frac: LeEqU16> LosslessTryFrom<FixedI16<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedI16<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU32> LosslessTryFrom<FixedI32<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedI32<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU64> LosslessTryFrom<FixedI64<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedI64<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU8> LosslessTryFrom<FixedI8<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedI8<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU16> LosslessTryFrom<FixedU16<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedU16<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU32> LosslessTryFrom<FixedU32<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedU32<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU64> LosslessTryFrom<FixedU64<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedU64<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl<Frac: LeEqU8> LosslessTryFrom<FixedU8<Frac>> for F128Bits

Sourceยง

fn lossless_try_from(src: FixedU8<Frac>) -> Option<F128Bits>

Converts a fixed-point number to a floating-point number.

This conversion actually never fails (infallible) but does not lose any precision (lossless).

Sourceยง

impl LosslessTryFrom<i16> for F128Bits

Sourceยง

fn lossless_try_from(src: i16) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<i32> for F128Bits

Sourceยง

fn lossless_try_from(src: i32) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<i64> for F128Bits

Sourceยง

fn lossless_try_from(src: i64) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<i8> for F128Bits

Sourceยง

fn lossless_try_from(src: i8) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<u16> for F128Bits

Sourceยง

fn lossless_try_from(src: u16) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<u32> for F128Bits

Sourceยง

fn lossless_try_from(src: u32) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<u64> for F128Bits

Sourceยง

fn lossless_try_from(src: u64) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl LosslessTryFrom<u8> for F128Bits

Sourceยง

fn lossless_try_from(src: u8) -> Option<F128Bits>

Converts an integer to a floating-point number.

This conversion actually never fails (infallible) and does not lose precision (lossless).

Sourceยง

impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedI128<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedI16<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedI32<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedI64<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedI8<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedU128<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedU16<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedU32<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedU64<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for F128Bits

Sourceยง

fn lossy_from(src: FixedU8<Frac>) -> F128Bits

Converts a fixed-point number to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl LossyFrom<i128> for F128Bits

Sourceยง

fn lossy_from(src: i128) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl LossyFrom<i16> for F128Bits

Sourceยง

fn lossy_from(src: i16) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<i32> for F128Bits

Sourceยง

fn lossy_from(src: i32) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<i64> for F128Bits

Sourceยง

fn lossy_from(src: i64) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<i8> for F128Bits

Sourceยง

fn lossy_from(src: i8) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<isize> for F128Bits

Sourceยง

fn lossy_from(src: isize) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl LossyFrom<u128> for F128Bits

Sourceยง

fn lossy_from(src: u128) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl LossyFrom<u16> for F128Bits

Sourceยง

fn lossy_from(src: u16) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<u32> for F128Bits

Sourceยง

fn lossy_from(src: u32) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<u64> for F128Bits

Sourceยง

fn lossy_from(src: u64) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<u8> for F128Bits

Sourceยง

fn lossy_from(src: u8) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) and actually does not lose precision (lossless).

Sourceยง

impl LossyFrom<usize> for F128Bits

Sourceยง

fn lossy_from(src: usize) -> F128Bits

Converts an integer to a floating-point number.

This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.

Sourceยง

impl Ord for F128Bits

Sourceยง

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

This method returns an Ordering between self and other. Read more
1.21.0 ยท Sourceยง

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

Compares and returns the maximum of two values. Read more
1.21.0 ยท Sourceยง

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

Compares and returns the minimum of two values. Read more
1.50.0 ยท Sourceยง

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

Restrict a value to a certain interval. Read more
Sourceยง

impl<Frac: LeEqU128> OverflowingCast<F128Bits> for FixedI128<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU16> OverflowingCast<F128Bits> for FixedI16<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU32> OverflowingCast<F128Bits> for FixedI32<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU64> OverflowingCast<F128Bits> for FixedI64<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU8> OverflowingCast<F128Bits> for FixedI8<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU128> OverflowingCast<F128Bits> for FixedU128<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU16> OverflowingCast<F128Bits> for FixedU16<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU32> OverflowingCast<F128Bits> for FixedU32<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU64> OverflowingCast<F128Bits> for FixedU64<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU8> OverflowingCast<F128Bits> for FixedU8<Frac>

Sourceยง

fn overflowing_cast(self) -> (F128Bits, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU128> OverflowingCast<FixedI128<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedI128<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU16> OverflowingCast<FixedI16<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedI16<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU32> OverflowingCast<FixedI32<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedI32<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU64> OverflowingCast<FixedI64<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedI64<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU8> OverflowingCast<FixedI8<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedI8<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU128> OverflowingCast<FixedU128<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedU128<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU16> OverflowingCast<FixedU16<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedU16<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU32> OverflowingCast<FixedU32<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedU32<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU64> OverflowingCast<FixedU64<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedU64<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: LeEqU8> OverflowingCast<FixedU8<Frac>> for F128Bits

Sourceยง

fn overflowing_cast(self) -> (FixedU8<Frac>, bool)

Casts the value.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedI128<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedI16<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedI32<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedI64<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedI8<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedU128<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedU16<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedU32<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedU64<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<F128Bits> for FixedU8<Frac>

Sourceยง

fn eq(&self, rhs: &F128Bits) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedI128<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedI128<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedI16<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedI16<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedI32<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedI32<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedI64<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedI64<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedI8<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedI8<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedU128<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedU128<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedU16<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedU16<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedU32<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedU32<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedU64<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedU64<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialEq<FixedU8<Frac>> for F128Bits

Sourceยง

fn eq(&self, rhs: &FixedU8<Frac>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl PartialEq for F128Bits

Sourceยง

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 ยท Sourceยง

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl<Frac: Unsigned> PartialOrd<F128Bits> for FixedI128<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedI16<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedI32<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedI64<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedI8<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedU128<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedU16<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedU32<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedU64<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<F128Bits> for FixedU8<Frac>

Sourceยง

fn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedI128<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedI128<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedI16<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedI16<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedI32<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedI32<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedI64<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedI64<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedI8<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedI8<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedU128<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedU128<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedU16<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedU16<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedU32<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedU32<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedU64<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedU64<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: Unsigned> PartialOrd<FixedU8<Frac>> for F128Bits

Sourceยง

fn partial_cmp(&self, rhs: &FixedU8<Frac>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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 for F128Bits

Sourceยง

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

This method returns an ordering between self and other values if one exists. Read more
1.0.0 ยท 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 ยท 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 ยท 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 ยท 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<Frac: LeEqU128> SaturatingCast<F128Bits> for FixedI128<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> SaturatingCast<F128Bits> for FixedI16<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> SaturatingCast<F128Bits> for FixedI32<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> SaturatingCast<F128Bits> for FixedI64<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> SaturatingCast<F128Bits> for FixedI8<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> SaturatingCast<F128Bits> for FixedU128<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> SaturatingCast<F128Bits> for FixedU16<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> SaturatingCast<F128Bits> for FixedU32<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> SaturatingCast<F128Bits> for FixedU64<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> SaturatingCast<F128Bits> for FixedU8<Frac>

Sourceยง

fn saturating_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> SaturatingCast<FixedI128<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedI128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> SaturatingCast<FixedI16<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedI16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> SaturatingCast<FixedI32<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedI32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> SaturatingCast<FixedI64<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedI64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> SaturatingCast<FixedI8<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedI8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> SaturatingCast<FixedU128<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedU128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> SaturatingCast<FixedU16<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedU16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> SaturatingCast<FixedU32<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedU32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> SaturatingCast<FixedU64<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedU64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> SaturatingCast<FixedU8<Frac>> for F128Bits

Sourceยง

fn saturating_cast(self) -> FixedU8<Frac>

Casts the value.
Sourceยง

impl ToFixed for F128Bits

Sourceยง

fn to_fixed<F: Fixed>(self) -> F

Converts a floating-point number to a fixed-point number.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if self is not finite.

When debug assertions are enabled, also panics if the value does not fit. When debug assertions are not enabled, the wrapped value can be returned, but it is not considered a breaking change if in the future it panics; if wrapping is required use wrapping_to_fixed instead.

Sourceยง

fn checked_to_fixed<F: Fixed>(self) -> Option<F>

Converts a floating-point number to a fixed-point number if it fits, otherwise returns None.

Rounding is to the nearest, with ties rounded to even.

Sourceยง

fn saturating_to_fixed<F: Fixed>(self) -> F

Converts a floating-point number to a fixed-point number, saturating if it does not fit.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if self is NaN.

Sourceยง

fn wrapping_to_fixed<F: Fixed>(self) -> F

Converts a floating-point number to a fixed-point number, wrapping if it does not fit.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if self is not finite.

Sourceยง

fn overflowing_to_fixed<F: Fixed>(self) -> (F, bool)

Converts a floating-point number to a fixed-point number.

Returns a tuple of the fixed-point number and a bool indicating whether an overflow has occurred. On overflow, the wrapped value is returned.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if self is not finite.

Sourceยง

fn unwrapped_to_fixed<F: Fixed>(self) -> F

Converts a floating-point number to a fixed-point number, panicking if it does not fit.

Rounding is to the nearest, with ties rounded to even.

ยงPanics

Panics if self is not finite or if the value does not fit, even when debug assertions are not enabled.

Sourceยง

impl<Frac: LeEqU128> UnwrappedCast<F128Bits> for FixedI128<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> UnwrappedCast<F128Bits> for FixedI16<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> UnwrappedCast<F128Bits> for FixedI32<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> UnwrappedCast<F128Bits> for FixedI64<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> UnwrappedCast<F128Bits> for FixedI8<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> UnwrappedCast<F128Bits> for FixedU128<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> UnwrappedCast<F128Bits> for FixedU16<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> UnwrappedCast<F128Bits> for FixedU32<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> UnwrappedCast<F128Bits> for FixedU64<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> UnwrappedCast<F128Bits> for FixedU8<Frac>

Sourceยง

fn unwrapped_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> UnwrappedCast<FixedI128<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedI128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> UnwrappedCast<FixedI16<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedI16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> UnwrappedCast<FixedI32<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedI32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> UnwrappedCast<FixedI64<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedI64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> UnwrappedCast<FixedI8<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedI8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> UnwrappedCast<FixedU128<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedU128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> UnwrappedCast<FixedU16<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedU16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> UnwrappedCast<FixedU32<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedU32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> UnwrappedCast<FixedU64<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedU64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> UnwrappedCast<FixedU8<Frac>> for F128Bits

Sourceยง

fn unwrapped_cast(self) -> FixedU8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> WrappingCast<F128Bits> for FixedI128<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> WrappingCast<F128Bits> for FixedI16<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> WrappingCast<F128Bits> for FixedI32<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> WrappingCast<F128Bits> for FixedI64<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> WrappingCast<F128Bits> for FixedI8<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> WrappingCast<F128Bits> for FixedU128<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU16> WrappingCast<F128Bits> for FixedU16<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU32> WrappingCast<F128Bits> for FixedU32<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU64> WrappingCast<F128Bits> for FixedU64<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU8> WrappingCast<F128Bits> for FixedU8<Frac>

Sourceยง

fn wrapping_cast(self) -> F128Bits

Casts the value.
Sourceยง

impl<Frac: LeEqU128> WrappingCast<FixedI128<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedI128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> WrappingCast<FixedI16<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedI16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> WrappingCast<FixedI32<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedI32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> WrappingCast<FixedI64<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedI64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> WrappingCast<FixedI8<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedI8<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU128> WrappingCast<FixedU128<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedU128<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU16> WrappingCast<FixedU16<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedU16<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU32> WrappingCast<FixedU32<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedU32<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU64> WrappingCast<FixedU64<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedU64<Frac>

Casts the value.
Sourceยง

impl<Frac: LeEqU8> WrappingCast<FixedU8<Frac>> for F128Bits

Sourceยง

fn wrapping_cast(self) -> FixedU8<Frac>

Casts the value.
Sourceยง

impl Copy for F128Bits

Sourceยง

impl Eq for F128Bits

Sourceยง

impl StructuralPartialEq for F128Bits

Auto Trait Implementationsยง

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> Az for T

Sourceยง

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Sourceยง

fn cast_from(src: Src) -> Dst

Casts the value.
Sourceยง

impl<T> CheckedAs for T

Sourceยง

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Sourceยง

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Sourceยง

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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> 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<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Sourceยง

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Sourceยง

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Sourceยง

fn lossy_into(self) -> Dst

Performs the conversion.
Sourceยง

impl<T> OverflowingAs for T

Sourceยง

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Sourceยง

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Sourceยง

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T> SaturatingAs for T

Sourceยง

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Sourceยง

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Sourceยง

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
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, 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.
Sourceยง

impl<T> UnwrappedAs for T

Sourceยง

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Sourceยง

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Sourceยง

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Sourceยง

impl<T> WrappingAs for T

Sourceยง

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Sourceยง

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Sourceยง

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.