#[repr(transparent)]pub struct F128Bits(pub u128);
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.
Examples
#![feature(generic_const_exprs)]
use fixed::{types::I16F16, F128Bits};
// binary128 representation for 1.0 is 0x3FFF << 112
let one = F128Bits(0x3FFF_u128 << 112);
assert_eq!(I16F16::ONE.to_num::<F128Bits>(), one);
assert_eq!(I16F16::from_num(one), I16F16::ONE);
// fixed-point numbers can be compared directly to F128Bits values
assert!(I16F16::from_num(1.5) > one);
assert!(I16F16::from_num(0.5) < one);
Tuple Fields
0: u128
Trait Implementations
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> Cast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> Cast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> Cast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> Cast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> Cast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> Cast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> Cast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> Cast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> Cast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> Cast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> Cast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> Cast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> Cast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> CheckedCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn checked_cast(self) -> Option<F128Bits>
fn checked_cast(self) -> Option<F128Bits>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> CheckedCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn checked_cast(self) -> Option<FixedI128<FRAC>>
fn checked_cast(self) -> Option<FixedI128<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> CheckedCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn checked_cast(self) -> Option<FixedI16<FRAC>>
fn checked_cast(self) -> Option<FixedI16<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> CheckedCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn checked_cast(self) -> Option<FixedI32<FRAC>>
fn checked_cast(self) -> Option<FixedI32<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> CheckedCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn checked_cast(self) -> Option<FixedI64<FRAC>>
fn checked_cast(self) -> Option<FixedI64<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> CheckedCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn checked_cast(self) -> Option<FixedI8<FRAC>>
fn checked_cast(self) -> Option<FixedI8<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> CheckedCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn checked_cast(self) -> Option<FixedU128<FRAC>>
fn checked_cast(self) -> Option<FixedU128<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> CheckedCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn checked_cast(self) -> Option<FixedU16<FRAC>>
fn checked_cast(self) -> Option<FixedU16<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> CheckedCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn checked_cast(self) -> Option<FixedU32<FRAC>>
fn checked_cast(self) -> Option<FixedU32<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> CheckedCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn checked_cast(self) -> Option<FixedU64<FRAC>>
fn checked_cast(self) -> Option<FixedU64<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> CheckedCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> CheckedCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn checked_cast(self) -> Option<FixedU8<FRAC>>
fn checked_cast(self) -> Option<FixedU8<FRAC>>
Casts the value.
sourceimpl<const FRAC: i32> From<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> From<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> From<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> From<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> From<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> From<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> From<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> From<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> From<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> From<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> From<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> From<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> From<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> From<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> From<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> From<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl FromFixed for F128Bits
impl FromFixed for F128Bits
sourcefn from_fixed<F: Fixed>(src: F) -> Self
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.
sourcefn checked_from_fixed<F: Fixed>(src: F) -> Option<Self>
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.
sourcefn saturating_from_fixed<F: Fixed>(src: F) -> Self
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.
sourcefn wrapping_from_fixed<F: Fixed>(src: F) -> Self
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.
sourcefn unwrapped_from_fixed<F: Fixed>(src: F) -> Self
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.
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn lossless_try_from(src: FixedI16<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn lossless_try_from(src: FixedI32<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn lossless_try_from(src: FixedI64<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn lossless_try_from(src: FixedI8<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn lossless_try_from(src: FixedU16<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn lossless_try_from(src: FixedU32<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn lossless_try_from(src: FixedU64<FRAC>) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LosslessTryFrom<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> LosslessTryFrom<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn lossless_try_from(src: FixedU8<FRAC>) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<i16> for F128Bits
impl LosslessTryFrom<i16> for F128Bits
sourcefn lossless_try_from(src: i16) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<i32> for F128Bits
impl LosslessTryFrom<i32> for F128Bits
sourcefn lossless_try_from(src: i32) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<i64> for F128Bits
impl LosslessTryFrom<i64> for F128Bits
sourcefn lossless_try_from(src: i64) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<i8> for F128Bits
impl LosslessTryFrom<i8> for F128Bits
sourcefn lossless_try_from(src: i8) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<u16> for F128Bits
impl LosslessTryFrom<u16> for F128Bits
sourcefn lossless_try_from(src: u16) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<u32> for F128Bits
impl LosslessTryFrom<u32> for F128Bits
sourcefn lossless_try_from(src: u32) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<u64> for F128Bits
impl LosslessTryFrom<u64> for F128Bits
sourcefn lossless_try_from(src: u64) -> Option<F128Bits>
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).
sourceimpl LosslessTryFrom<u8> for F128Bits
impl LosslessTryFrom<u8> for F128Bits
sourcefn lossless_try_from(src: u8) -> Option<F128Bits>
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).
sourceimpl<const FRAC: i32> LossyFrom<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> LossyFrom<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn lossy_from(src: FixedI128<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> LossyFrom<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn lossy_from(src: FixedI16<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> LossyFrom<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn lossy_from(src: FixedI32<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> LossyFrom<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn lossy_from(src: FixedI64<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> LossyFrom<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn lossy_from(src: FixedI8<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> LossyFrom<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn lossy_from(src: FixedU128<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> LossyFrom<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn lossy_from(src: FixedU16<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> LossyFrom<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn lossy_from(src: FixedU32<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> LossyFrom<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn lossy_from(src: FixedU64<FRAC>) -> F128Bits
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.
sourceimpl<const FRAC: i32> LossyFrom<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> LossyFrom<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn lossy_from(src: FixedU8<FRAC>) -> F128Bits
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.
sourceimpl LossyFrom<i128> for F128Bits
impl LossyFrom<i128> for F128Bits
sourcefn lossy_from(src: i128) -> F128Bits
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.
sourceimpl LossyFrom<i16> for F128Bits
impl LossyFrom<i16> for F128Bits
sourcefn lossy_from(src: i16) -> F128Bits
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).
sourceimpl LossyFrom<i32> for F128Bits
impl LossyFrom<i32> for F128Bits
sourcefn lossy_from(src: i32) -> F128Bits
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).
sourceimpl LossyFrom<i64> for F128Bits
impl LossyFrom<i64> for F128Bits
sourcefn lossy_from(src: i64) -> F128Bits
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).
sourceimpl LossyFrom<i8> for F128Bits
impl LossyFrom<i8> for F128Bits
sourcefn lossy_from(src: i8) -> F128Bits
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).
sourceimpl LossyFrom<isize> for F128Bits
impl LossyFrom<isize> for F128Bits
sourcefn lossy_from(src: isize) -> F128Bits
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.
sourceimpl LossyFrom<u128> for F128Bits
impl LossyFrom<u128> for F128Bits
sourcefn lossy_from(src: u128) -> F128Bits
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.
sourceimpl LossyFrom<u16> for F128Bits
impl LossyFrom<u16> for F128Bits
sourcefn lossy_from(src: u16) -> F128Bits
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).
sourceimpl LossyFrom<u32> for F128Bits
impl LossyFrom<u32> for F128Bits
sourcefn lossy_from(src: u32) -> F128Bits
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).
sourceimpl LossyFrom<u64> for F128Bits
impl LossyFrom<u64> for F128Bits
sourcefn lossy_from(src: u64) -> F128Bits
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).
sourceimpl LossyFrom<u8> for F128Bits
impl LossyFrom<u8> for F128Bits
sourcefn lossy_from(src: u8) -> F128Bits
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).
sourceimpl LossyFrom<usize> for F128Bits
impl LossyFrom<usize> for F128Bits
sourcefn lossy_from(src: usize) -> F128Bits
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.
sourceimpl Ord for F128Bits
impl Ord for F128Bits
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> OverflowingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourceimpl<const FRAC: i32> OverflowingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> OverflowingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedI8<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedI8<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedI16<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedI16<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<F128Bits> for F128Bits
impl PartialOrd<F128Bits> for F128Bits
sourcefn partial_cmp(&self, other: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedI32<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedI32<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedI64<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedI64<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedI128<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedI128<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedU8<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedU8<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedU16<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedU16<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedU32<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedU32<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedU64<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedU64<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<F128Bits> for FixedU128<FRAC>
impl<const FRAC: i32> PartialOrd<F128Bits> for FixedU128<FRAC>
sourcefn partial_cmp(&self, rhs: &F128Bits) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedI128<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedI128<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedI128<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedI16<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedI16<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedI16<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedI32<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedI32<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedI32<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedI64<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedI64<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedI64<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedI8<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedI8<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedI8<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedU128<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedU128<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedU128<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedU16<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedU16<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedU16<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedU32<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedU32<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedU32<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedU64<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedU64<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedU64<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> PartialOrd<FixedU8<FRAC>> for F128Bits
impl<const FRAC: i32> PartialOrd<FixedU8<FRAC>> for F128Bits
sourcefn partial_cmp(&self, rhs: &FixedU8<FRAC>) -> Option<Ordering>
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 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> SaturatingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn saturating_cast(self) -> F128Bits
fn saturating_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn saturating_cast(self) -> FixedI128<FRAC>
fn saturating_cast(self) -> FixedI128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn saturating_cast(self) -> FixedI16<FRAC>
fn saturating_cast(self) -> FixedI16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn saturating_cast(self) -> FixedI32<FRAC>
fn saturating_cast(self) -> FixedI32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn saturating_cast(self) -> FixedI64<FRAC>
fn saturating_cast(self) -> FixedI64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn saturating_cast(self) -> FixedI8<FRAC>
fn saturating_cast(self) -> FixedI8<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn saturating_cast(self) -> FixedU128<FRAC>
fn saturating_cast(self) -> FixedU128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn saturating_cast(self) -> FixedU16<FRAC>
fn saturating_cast(self) -> FixedU16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn saturating_cast(self) -> FixedU32<FRAC>
fn saturating_cast(self) -> FixedU32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn saturating_cast(self) -> FixedU64<FRAC>
fn saturating_cast(self) -> FixedU64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> SaturatingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> SaturatingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn saturating_cast(self) -> FixedU8<FRAC>
fn saturating_cast(self) -> FixedU8<FRAC>
Casts the value.
sourceimpl ToFixed for F128Bits
impl ToFixed for F128Bits
sourcefn to_fixed<F: Fixed>(self) -> F
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.
sourcefn checked_to_fixed<F: Fixed>(self) -> Option<F>
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.
sourcefn saturating_to_fixed<F: Fixed>(self) -> F
fn saturating_to_fixed<F: Fixed>(self) -> F
sourcefn wrapping_to_fixed<F: Fixed>(self) -> F
fn wrapping_to_fixed<F: Fixed>(self) -> F
sourcefn unwrapped_to_fixed<F: Fixed>(self) -> F
fn unwrapped_to_fixed<F: Fixed>(self) -> F
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> UnwrappedCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn unwrapped_cast(self) -> F128Bits
fn unwrapped_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn unwrapped_cast(self) -> FixedI128<FRAC>
fn unwrapped_cast(self) -> FixedI128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn unwrapped_cast(self) -> FixedI16<FRAC>
fn unwrapped_cast(self) -> FixedI16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn unwrapped_cast(self) -> FixedI32<FRAC>
fn unwrapped_cast(self) -> FixedI32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn unwrapped_cast(self) -> FixedI64<FRAC>
fn unwrapped_cast(self) -> FixedI64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn unwrapped_cast(self) -> FixedI8<FRAC>
fn unwrapped_cast(self) -> FixedI8<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn unwrapped_cast(self) -> FixedU128<FRAC>
fn unwrapped_cast(self) -> FixedU128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn unwrapped_cast(self) -> FixedU16<FRAC>
fn unwrapped_cast(self) -> FixedU16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn unwrapped_cast(self) -> FixedU32<FRAC>
fn unwrapped_cast(self) -> FixedU32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn unwrapped_cast(self) -> FixedU64<FRAC>
fn unwrapped_cast(self) -> FixedU64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> UnwrappedCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> UnwrappedCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn unwrapped_cast(self) -> FixedU8<FRAC>
fn unwrapped_cast(self) -> FixedU8<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedI8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedI16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedI32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedI64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedI128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedU8<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedU16<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedU32<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedU64<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> WrappingCast<F128Bits> for FixedU128<FRAC> where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn wrapping_cast(self) -> F128Bits
fn wrapping_cast(self) -> F128Bits
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> WrappingCast<FixedI128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn wrapping_cast(self) -> FixedI128<FRAC>
fn wrapping_cast(self) -> FixedI128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> WrappingCast<FixedI16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn wrapping_cast(self) -> FixedI16<FRAC>
fn wrapping_cast(self) -> FixedI16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> WrappingCast<FixedI32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn wrapping_cast(self) -> FixedI32<FRAC>
fn wrapping_cast(self) -> FixedI32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> WrappingCast<FixedI64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn wrapping_cast(self) -> FixedI64<FRAC>
fn wrapping_cast(self) -> FixedI64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> WrappingCast<FixedI8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn wrapping_cast(self) -> FixedI8<FRAC>
fn wrapping_cast(self) -> FixedI8<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
impl<const FRAC: i32> WrappingCast<FixedU128<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 128) }>: True,
sourcefn wrapping_cast(self) -> FixedU128<FRAC>
fn wrapping_cast(self) -> FixedU128<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
impl<const FRAC: i32> WrappingCast<FixedU16<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 16) }>: True,
sourcefn wrapping_cast(self) -> FixedU16<FRAC>
fn wrapping_cast(self) -> FixedU16<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
impl<const FRAC: i32> WrappingCast<FixedU32<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 32) }>: True,
sourcefn wrapping_cast(self) -> FixedU32<FRAC>
fn wrapping_cast(self) -> FixedU32<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
impl<const FRAC: i32> WrappingCast<FixedU64<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 64) }>: True,
sourcefn wrapping_cast(self) -> FixedU64<FRAC>
fn wrapping_cast(self) -> FixedU64<FRAC>
Casts the value.
sourceimpl<const FRAC: i32> WrappingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
impl<const FRAC: i32> WrappingCast<FixedU8<FRAC>> for F128Bits where
If<{ (0 <= FRAC) & (FRAC <= 8) }>: True,
sourcefn wrapping_cast(self) -> FixedU8<FRAC>
fn wrapping_cast(self) -> FixedU8<FRAC>
Casts the value.
impl Copy for F128Bits
impl Eq for F128Bits
impl StructuralEq for F128Bits
impl StructuralPartialEq for F128Bits
Auto Trait Implementations
impl RefUnwindSafe for F128Bits
impl Send for F128Bits
impl Sync for F128Bits
impl Unpin for F128Bits
impl UnwindSafe for F128Bits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcepub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcepub fn checked_cast_from(src: Src) -> Option<Dst>
pub fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
sourcefn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceimpl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcepub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcepub fn overflowing_cast_from(src: Src) -> (Dst, bool)
pub fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcepub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcepub fn saturating_cast_from(src: Src) -> Dst
pub fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcepub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcepub fn unwrapped_cast_from(src: Src) -> Dst
pub fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcepub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcepub fn wrapping_cast_from(src: Src) -> Dst
pub fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.