pub trait LossyFrom<Src> {
// Required method
fn lossy_from(src: Src) -> Self;
}
Expand description
This trait provides infallible conversions that might be lossy.
This trait is implemented for conversions between integer primitives, floating-point primitives and fixed-point numbers.
§Examples
use fixed::traits::LossyFrom;
use fixed::types::{I12F4, I8F24};
// original is 0x12.345678, lossy is 0x012.3
let original = I8F24::from_bits(0x1234_5678);
let lossy = I12F4::lossy_from(original);
assert_eq!(lossy, I12F4::from_bits(0x0123));
Required Methods§
sourcefn lossy_from(src: Src) -> Self
fn lossy_from(src: Src) -> Self
Performs the conversion.
Object Safety§
Implementations on Foreign Types§
source§impl LossyFrom<bool> for bool
impl LossyFrom<bool> for bool
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for i8
impl LossyFrom<bool> for i8
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for i16
impl LossyFrom<bool> for i16
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for i32
impl LossyFrom<bool> for i32
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for i64
impl LossyFrom<bool> for i64
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for i128
impl LossyFrom<bool> for i128
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for isize
impl LossyFrom<bool> for isize
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for u8
impl LossyFrom<bool> for u8
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for u16
impl LossyFrom<bool> for u16
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for u32
impl LossyFrom<bool> for u32
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for u64
impl LossyFrom<bool> for u64
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for u128
impl LossyFrom<bool> for u128
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bool> for usize
impl LossyFrom<bool> for usize
source§fn lossy_from(src: bool) -> Self
fn lossy_from(src: bool) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f32> for f32
impl LossyFrom<f32> for f32
source§fn lossy_from(src: f32) -> Self
fn lossy_from(src: f32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f32> for f64
impl LossyFrom<f32> for f64
source§fn lossy_from(src: f32) -> Self
fn lossy_from(src: f32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f32> for bf16
impl LossyFrom<f32> for bf16
source§fn lossy_from(src: f32) -> bf16
fn lossy_from(src: f32) -> bf16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f32> for f16
impl LossyFrom<f32> for f16
source§fn lossy_from(src: f32) -> f16
fn lossy_from(src: f32) -> f16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f64> for f32
impl LossyFrom<f64> for f32
source§fn lossy_from(src: f64) -> f32
fn lossy_from(src: f64) -> f32
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f64> for f64
impl LossyFrom<f64> for f64
source§fn lossy_from(src: f64) -> Self
fn lossy_from(src: f64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f64> for bf16
impl LossyFrom<f64> for bf16
source§fn lossy_from(src: f64) -> bf16
fn lossy_from(src: f64) -> bf16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f64> for f16
impl LossyFrom<f64> for f16
source§fn lossy_from(src: f64) -> f16
fn lossy_from(src: f64) -> f16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<i8> for f32
impl LossyFrom<i8> for f32
source§fn lossy_from(src: i8) -> f32
fn lossy_from(src: i8) -> f32
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 f64
impl LossyFrom<i8> for f64
source§fn lossy_from(src: i8) -> f64
fn lossy_from(src: i8) -> f64
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 i8
impl LossyFrom<i8> for i8
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for i16
impl LossyFrom<i8> for i16
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for i32
impl LossyFrom<i8> for i32
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for i64
impl LossyFrom<i8> for i64
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for i128
impl LossyFrom<i8> for i128
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for isize
impl LossyFrom<i8> for isize
source§fn lossy_from(src: i8) -> Self
fn lossy_from(src: i8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i8> for bf16
impl LossyFrom<i8> for bf16
source§fn lossy_from(src: i8) -> bf16
fn lossy_from(src: i8) -> bf16
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<i8> for f16
impl LossyFrom<i8> for f16
source§fn lossy_from(src: i8) -> f16
fn lossy_from(src: i8) -> f16
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<i16> for f32
impl LossyFrom<i16> for f32
source§fn lossy_from(src: i16) -> f32
fn lossy_from(src: i16) -> f32
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<i16> for f64
impl LossyFrom<i16> for f64
source§fn lossy_from(src: i16) -> f64
fn lossy_from(src: i16) -> f64
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<i16> for i16
impl LossyFrom<i16> for i16
source§fn lossy_from(src: i16) -> Self
fn lossy_from(src: i16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i16> for i32
impl LossyFrom<i16> for i32
source§fn lossy_from(src: i16) -> Self
fn lossy_from(src: i16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i16> for i64
impl LossyFrom<i16> for i64
source§fn lossy_from(src: i16) -> Self
fn lossy_from(src: i16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i16> for i128
impl LossyFrom<i16> for i128
source§fn lossy_from(src: i16) -> Self
fn lossy_from(src: i16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i16> for isize
impl LossyFrom<i16> for isize
source§fn lossy_from(src: i16) -> Self
fn lossy_from(src: i16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i16> for bf16
impl LossyFrom<i16> for bf16
source§fn lossy_from(src: i16) -> bf16
fn lossy_from(src: i16) -> bf16
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 f16
impl LossyFrom<i16> for f16
source§fn lossy_from(src: i16) -> f16
fn lossy_from(src: i16) -> f16
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<i32> for f32
impl LossyFrom<i32> for f32
source§fn lossy_from(src: i32) -> f32
fn lossy_from(src: i32) -> f32
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<i32> for f64
impl LossyFrom<i32> for f64
source§fn lossy_from(src: i32) -> f64
fn lossy_from(src: i32) -> f64
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 i32
impl LossyFrom<i32> for i32
source§fn lossy_from(src: i32) -> Self
fn lossy_from(src: i32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i32> for i64
impl LossyFrom<i32> for i64
source§fn lossy_from(src: i32) -> Self
fn lossy_from(src: i32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i32> for i128
impl LossyFrom<i32> for i128
source§fn lossy_from(src: i32) -> Self
fn lossy_from(src: i32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i32> for bf16
impl LossyFrom<i32> for bf16
source§fn lossy_from(src: i32) -> bf16
fn lossy_from(src: i32) -> bf16
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<i32> for f16
impl LossyFrom<i32> for f16
source§fn lossy_from(src: i32) -> f16
fn lossy_from(src: i32) -> f16
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<i64> for f32
impl LossyFrom<i64> for f32
source§fn lossy_from(src: i64) -> f32
fn lossy_from(src: i64) -> f32
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<i64> for f64
impl LossyFrom<i64> for f64
source§fn lossy_from(src: i64) -> f64
fn lossy_from(src: i64) -> f64
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<i64> for i64
impl LossyFrom<i64> for i64
source§fn lossy_from(src: i64) -> Self
fn lossy_from(src: i64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i64> for i128
impl LossyFrom<i64> for i128
source§fn lossy_from(src: i64) -> Self
fn lossy_from(src: i64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i64> for bf16
impl LossyFrom<i64> for bf16
source§fn lossy_from(src: i64) -> bf16
fn lossy_from(src: i64) -> bf16
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<i64> for f16
impl LossyFrom<i64> for f16
source§fn lossy_from(src: i64) -> f16
fn lossy_from(src: i64) -> f16
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<i128> for f32
impl LossyFrom<i128> for f32
source§fn lossy_from(src: i128) -> f32
fn lossy_from(src: i128) -> f32
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<i128> for f64
impl LossyFrom<i128> for f64
source§fn lossy_from(src: i128) -> f64
fn lossy_from(src: i128) -> f64
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<i128> for i128
impl LossyFrom<i128> for i128
source§fn lossy_from(src: i128) -> Self
fn lossy_from(src: i128) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<i128> for bf16
impl LossyFrom<i128> for bf16
source§fn lossy_from(src: i128) -> bf16
fn lossy_from(src: i128) -> bf16
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<i128> for f16
impl LossyFrom<i128> for f16
source§fn lossy_from(src: i128) -> f16
fn lossy_from(src: i128) -> f16
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<isize> for f32
impl LossyFrom<isize> for f32
source§fn lossy_from(src: isize) -> f32
fn lossy_from(src: isize) -> f32
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<isize> for f64
impl LossyFrom<isize> for f64
source§fn lossy_from(src: isize) -> f64
fn lossy_from(src: isize) -> f64
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<isize> for isize
impl LossyFrom<isize> for isize
source§fn lossy_from(src: isize) -> Self
fn lossy_from(src: isize) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<isize> for bf16
impl LossyFrom<isize> for bf16
source§fn lossy_from(src: isize) -> bf16
fn lossy_from(src: isize) -> bf16
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<isize> for f16
impl LossyFrom<isize> for f16
source§fn lossy_from(src: isize) -> f16
fn lossy_from(src: isize) -> f16
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<u8> for f32
impl LossyFrom<u8> for f32
source§fn lossy_from(src: u8) -> f32
fn lossy_from(src: u8) -> f32
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 f64
impl LossyFrom<u8> for f64
source§fn lossy_from(src: u8) -> f64
fn lossy_from(src: u8) -> f64
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 i16
impl LossyFrom<u8> for i16
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for i32
impl LossyFrom<u8> for i32
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for i64
impl LossyFrom<u8> for i64
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for i128
impl LossyFrom<u8> for i128
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for isize
impl LossyFrom<u8> for isize
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for u8
impl LossyFrom<u8> for u8
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for u16
impl LossyFrom<u8> for u16
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for u32
impl LossyFrom<u8> for u32
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for u64
impl LossyFrom<u8> for u64
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for u128
impl LossyFrom<u8> for u128
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for usize
impl LossyFrom<u8> for usize
source§fn lossy_from(src: u8) -> Self
fn lossy_from(src: u8) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u8> for bf16
impl LossyFrom<u8> for bf16
source§fn lossy_from(src: u8) -> bf16
fn lossy_from(src: u8) -> bf16
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<u8> for f16
impl LossyFrom<u8> for f16
source§fn lossy_from(src: u8) -> f16
fn lossy_from(src: u8) -> f16
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<u16> for f32
impl LossyFrom<u16> for f32
source§fn lossy_from(src: u16) -> f32
fn lossy_from(src: u16) -> f32
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<u16> for f64
impl LossyFrom<u16> for f64
source§fn lossy_from(src: u16) -> f64
fn lossy_from(src: u16) -> f64
Converts an integer to a floating-point number.
This conversion never fails (infallible) and actually does not lose precision (lossless).
source§impl LossyFrom<u16> for i32
impl LossyFrom<u16> for i32
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for i64
impl LossyFrom<u16> for i64
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for i128
impl LossyFrom<u16> for i128
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for u16
impl LossyFrom<u16> for u16
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for u32
impl LossyFrom<u16> for u32
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for u64
impl LossyFrom<u16> for u64
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for u128
impl LossyFrom<u16> for u128
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for usize
impl LossyFrom<u16> for usize
source§fn lossy_from(src: u16) -> Self
fn lossy_from(src: u16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u16> for bf16
impl LossyFrom<u16> for bf16
source§fn lossy_from(src: u16) -> bf16
fn lossy_from(src: u16) -> bf16
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 f16
impl LossyFrom<u16> for f16
source§fn lossy_from(src: u16) -> f16
fn lossy_from(src: u16) -> f16
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<u32> for f32
impl LossyFrom<u32> for f32
source§fn lossy_from(src: u32) -> f32
fn lossy_from(src: u32) -> f32
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<u32> for f64
impl LossyFrom<u32> for f64
source§fn lossy_from(src: u32) -> f64
fn lossy_from(src: u32) -> f64
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 i64
impl LossyFrom<u32> for i64
source§fn lossy_from(src: u32) -> Self
fn lossy_from(src: u32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u32> for i128
impl LossyFrom<u32> for i128
source§fn lossy_from(src: u32) -> Self
fn lossy_from(src: u32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u32> for u32
impl LossyFrom<u32> for u32
source§fn lossy_from(src: u32) -> Self
fn lossy_from(src: u32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u32> for u64
impl LossyFrom<u32> for u64
source§fn lossy_from(src: u32) -> Self
fn lossy_from(src: u32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u32> for u128
impl LossyFrom<u32> for u128
source§fn lossy_from(src: u32) -> Self
fn lossy_from(src: u32) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u32> for bf16
impl LossyFrom<u32> for bf16
source§fn lossy_from(src: u32) -> bf16
fn lossy_from(src: u32) -> bf16
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<u32> for f16
impl LossyFrom<u32> for f16
source§fn lossy_from(src: u32) -> f16
fn lossy_from(src: u32) -> f16
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<u64> for f32
impl LossyFrom<u64> for f32
source§fn lossy_from(src: u64) -> f32
fn lossy_from(src: u64) -> f32
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<u64> for f64
impl LossyFrom<u64> for f64
source§fn lossy_from(src: u64) -> f64
fn lossy_from(src: u64) -> f64
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<u64> for i128
impl LossyFrom<u64> for i128
source§fn lossy_from(src: u64) -> Self
fn lossy_from(src: u64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u64> for u64
impl LossyFrom<u64> for u64
source§fn lossy_from(src: u64) -> Self
fn lossy_from(src: u64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u64> for u128
impl LossyFrom<u64> for u128
source§fn lossy_from(src: u64) -> Self
fn lossy_from(src: u64) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u64> for bf16
impl LossyFrom<u64> for bf16
source§fn lossy_from(src: u64) -> bf16
fn lossy_from(src: u64) -> bf16
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<u64> for f16
impl LossyFrom<u64> for f16
source§fn lossy_from(src: u64) -> f16
fn lossy_from(src: u64) -> f16
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 f32
impl LossyFrom<u128> for f32
source§fn lossy_from(src: u128) -> f32
fn lossy_from(src: u128) -> f32
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 f64
impl LossyFrom<u128> for f64
source§fn lossy_from(src: u128) -> f64
fn lossy_from(src: u128) -> f64
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 u128
impl LossyFrom<u128> for u128
source§fn lossy_from(src: u128) -> Self
fn lossy_from(src: u128) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<u128> for bf16
impl LossyFrom<u128> for bf16
source§fn lossy_from(src: u128) -> bf16
fn lossy_from(src: u128) -> bf16
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 f16
impl LossyFrom<u128> for f16
source§fn lossy_from(src: u128) -> f16
fn lossy_from(src: u128) -> f16
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<usize> for f32
impl LossyFrom<usize> for f32
source§fn lossy_from(src: usize) -> f32
fn lossy_from(src: usize) -> f32
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<usize> for f64
impl LossyFrom<usize> for f64
source§fn lossy_from(src: usize) -> f64
fn lossy_from(src: usize) -> f64
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<usize> for usize
impl LossyFrom<usize> for usize
source§fn lossy_from(src: usize) -> Self
fn lossy_from(src: usize) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<usize> for bf16
impl LossyFrom<usize> for bf16
source§fn lossy_from(src: usize) -> bf16
fn lossy_from(src: usize) -> bf16
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<usize> for f16
impl LossyFrom<usize> for f16
source§fn lossy_from(src: usize) -> f16
fn lossy_from(src: usize) -> f16
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<bf16> for f32
impl LossyFrom<bf16> for f32
source§fn lossy_from(src: bf16) -> Self
fn lossy_from(src: bf16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bf16> for f64
impl LossyFrom<bf16> for f64
source§fn lossy_from(src: bf16) -> Self
fn lossy_from(src: bf16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bf16> for bf16
impl LossyFrom<bf16> for bf16
source§fn lossy_from(src: bf16) -> Self
fn lossy_from(src: bf16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<bf16> for f16
impl LossyFrom<bf16> for f16
source§fn lossy_from(src: bf16) -> f16
fn lossy_from(src: bf16) -> f16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f16> for f32
impl LossyFrom<f16> for f32
source§fn lossy_from(src: f16) -> Self
fn lossy_from(src: f16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f16> for f64
impl LossyFrom<f16> for f64
source§fn lossy_from(src: f16) -> Self
fn lossy_from(src: f16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl LossyFrom<f16> for bf16
impl LossyFrom<f16> for bf16
source§fn lossy_from(src: f16) -> bf16
fn lossy_from(src: f16) -> bf16
Converts a number.
This conversion never fails (infallible) but may lose precision (lossy). Rounding is to the nearest, with ties rounded to even.
source§impl LossyFrom<f16> for f16
impl LossyFrom<f16> for f16
source§fn lossy_from(src: f16) -> Self
fn lossy_from(src: f16) -> Self
Converts a number.
This conversion never fails (infallible) and actually does not lose any precision (lossless).
source§impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for f32
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for f32
source§fn lossy_from(src: FixedI8<Frac>) -> f32
fn lossy_from(src: FixedI8<Frac>) -> f32
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 f64
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for f64
source§fn lossy_from(src: FixedI8<Frac>) -> f64
fn lossy_from(src: FixedI8<Frac>) -> f64
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 bf16
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for bf16
source§fn lossy_from(src: FixedI8<Frac>) -> bf16
fn lossy_from(src: FixedI8<Frac>) -> bf16
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 f16
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for f16
source§fn lossy_from(src: FixedI8<Frac>) -> f16
fn lossy_from(src: FixedI8<Frac>) -> f16
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 f32
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for f32
source§fn lossy_from(src: FixedU8<Frac>) -> f32
fn lossy_from(src: FixedU8<Frac>) -> f32
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 f64
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for f64
source§fn lossy_from(src: FixedU8<Frac>) -> f64
fn lossy_from(src: FixedU8<Frac>) -> f64
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 bf16
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for bf16
source§fn lossy_from(src: FixedU8<Frac>) -> bf16
fn lossy_from(src: FixedU8<Frac>) -> bf16
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 f16
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for f16
source§fn lossy_from(src: FixedU8<Frac>) -> f16
fn lossy_from(src: FixedU8<Frac>) -> f16
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 f32
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for f32
source§fn lossy_from(src: FixedI16<Frac>) -> f32
fn lossy_from(src: FixedI16<Frac>) -> f32
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 f64
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for f64
source§fn lossy_from(src: FixedI16<Frac>) -> f64
fn lossy_from(src: FixedI16<Frac>) -> f64
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 bf16
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for bf16
source§fn lossy_from(src: FixedI16<Frac>) -> bf16
fn lossy_from(src: FixedI16<Frac>) -> bf16
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 f16
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for f16
source§fn lossy_from(src: FixedI16<Frac>) -> f16
fn lossy_from(src: FixedI16<Frac>) -> f16
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 f32
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f32
source§fn lossy_from(src: FixedU16<Frac>) -> f32
fn lossy_from(src: FixedU16<Frac>) -> f32
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 f64
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f64
source§fn lossy_from(src: FixedU16<Frac>) -> f64
fn lossy_from(src: FixedU16<Frac>) -> f64
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 bf16
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for bf16
source§fn lossy_from(src: FixedU16<Frac>) -> bf16
fn lossy_from(src: FixedU16<Frac>) -> bf16
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 f16
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for f16
source§fn lossy_from(src: FixedU16<Frac>) -> f16
fn lossy_from(src: FixedU16<Frac>) -> f16
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 f32
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for f32
source§fn lossy_from(src: FixedI32<Frac>) -> f32
fn lossy_from(src: FixedI32<Frac>) -> f32
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 f64
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for f64
source§fn lossy_from(src: FixedI32<Frac>) -> f64
fn lossy_from(src: FixedI32<Frac>) -> f64
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 bf16
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for bf16
source§fn lossy_from(src: FixedI32<Frac>) -> bf16
fn lossy_from(src: FixedI32<Frac>) -> bf16
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 f16
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for f16
source§fn lossy_from(src: FixedI32<Frac>) -> f16
fn lossy_from(src: FixedI32<Frac>) -> f16
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 f32
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for f32
source§fn lossy_from(src: FixedU32<Frac>) -> f32
fn lossy_from(src: FixedU32<Frac>) -> f32
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 f64
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for f64
source§fn lossy_from(src: FixedU32<Frac>) -> f64
fn lossy_from(src: FixedU32<Frac>) -> f64
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 bf16
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for bf16
source§fn lossy_from(src: FixedU32<Frac>) -> bf16
fn lossy_from(src: FixedU32<Frac>) -> bf16
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 f16
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for f16
source§fn lossy_from(src: FixedU32<Frac>) -> f16
fn lossy_from(src: FixedU32<Frac>) -> f16
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 f32
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for f32
source§fn lossy_from(src: FixedI64<Frac>) -> f32
fn lossy_from(src: FixedI64<Frac>) -> f32
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 f64
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for f64
source§fn lossy_from(src: FixedI64<Frac>) -> f64
fn lossy_from(src: FixedI64<Frac>) -> f64
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 bf16
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for bf16
source§fn lossy_from(src: FixedI64<Frac>) -> bf16
fn lossy_from(src: FixedI64<Frac>) -> bf16
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 f16
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for f16
source§fn lossy_from(src: FixedI64<Frac>) -> f16
fn lossy_from(src: FixedI64<Frac>) -> f16
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 f32
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for f32
source§fn lossy_from(src: FixedU64<Frac>) -> f32
fn lossy_from(src: FixedU64<Frac>) -> f32
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 f64
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for f64
source§fn lossy_from(src: FixedU64<Frac>) -> f64
fn lossy_from(src: FixedU64<Frac>) -> f64
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 bf16
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for bf16
source§fn lossy_from(src: FixedU64<Frac>) -> bf16
fn lossy_from(src: FixedU64<Frac>) -> bf16
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 f16
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for f16
source§fn lossy_from(src: FixedU64<Frac>) -> f16
fn lossy_from(src: FixedU64<Frac>) -> f16
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<FixedI128<Frac>> for f32
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for f32
source§fn lossy_from(src: FixedI128<Frac>) -> f32
fn lossy_from(src: FixedI128<Frac>) -> f32
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<FixedI128<Frac>> for f64
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for f64
source§fn lossy_from(src: FixedI128<Frac>) -> f64
fn lossy_from(src: FixedI128<Frac>) -> f64
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<FixedI128<Frac>> for bf16
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for bf16
source§fn lossy_from(src: FixedI128<Frac>) -> bf16
fn lossy_from(src: FixedI128<Frac>) -> bf16
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<FixedI128<Frac>> for f16
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for f16
source§fn lossy_from(src: FixedI128<Frac>) -> f16
fn lossy_from(src: FixedI128<Frac>) -> f16
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 f32
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for f32
source§fn lossy_from(src: FixedU128<Frac>) -> f32
fn lossy_from(src: FixedU128<Frac>) -> f32
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 f64
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for f64
source§fn lossy_from(src: FixedU128<Frac>) -> f64
fn lossy_from(src: FixedU128<Frac>) -> f64
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 bf16
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for bf16
source§fn lossy_from(src: FixedU128<Frac>) -> bf16
fn lossy_from(src: FixedU128<Frac>) -> bf16
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 f16
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for f16
source§fn lossy_from(src: FixedU128<Frac>) -> f16
fn lossy_from(src: FixedU128<Frac>) -> f16
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<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i8
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i8
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i16
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i16
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i32
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i32
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i64
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i64
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i128
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for i128
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for isize
impl<FracSrc: LeEqU8> LossyFrom<FixedI8<FracSrc>> for isize
source§fn lossy_from(src: FixedI8<FracSrc>) -> Self
fn lossy_from(src: FixedI8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i8
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i8
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i16
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i16
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i32
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i32
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i64
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i64
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i128
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for i128
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for isize
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for isize
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u8
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u8
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u16
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u16
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u32
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u32
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u64
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u64
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u128
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for u128
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for usize
impl<FracSrc: LeEqU8> LossyFrom<FixedU8<FracSrc>> for usize
source§fn lossy_from(src: FixedU8<FracSrc>) -> Self
fn lossy_from(src: FixedU8<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i8
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i8
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i16
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i16
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i32
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i32
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i64
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i64
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i128
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for i128
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for isize
impl<FracSrc: LeEqU16> LossyFrom<FixedI16<FracSrc>> for isize
source§fn lossy_from(src: FixedI16<FracSrc>) -> Self
fn lossy_from(src: FixedI16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i8
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i8
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i16
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i16
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i32
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i32
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i64
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i64
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i128
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for i128
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for isize
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for isize
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u8
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u8
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u16
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u16
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u32
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u32
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u64
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u64
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u128
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for u128
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for usize
impl<FracSrc: LeEqU16> LossyFrom<FixedU16<FracSrc>> for usize
source§fn lossy_from(src: FixedU16<FracSrc>) -> Self
fn lossy_from(src: FixedU16<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i8
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i8
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i16
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i16
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i32
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i32
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i64
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i64
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i128
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for i128
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for isize
impl<FracSrc: LeEqU32> LossyFrom<FixedI32<FracSrc>> for isize
source§fn lossy_from(src: FixedI32<FracSrc>) -> Self
fn lossy_from(src: FixedI32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i8
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i8
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i16
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i16
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i32
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i32
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i64
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i64
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i128
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for i128
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for isize
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for isize
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u8
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u8
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u16
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u16
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u32
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u32
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u64
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u64
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u128
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for u128
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for usize
impl<FracSrc: LeEqU32> LossyFrom<FixedU32<FracSrc>> for usize
source§fn lossy_from(src: FixedU32<FracSrc>) -> Self
fn lossy_from(src: FixedU32<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i8
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i8
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i16
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i16
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i32
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i32
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i64
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i64
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i128
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for i128
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for isize
impl<FracSrc: LeEqU64> LossyFrom<FixedI64<FracSrc>> for isize
source§fn lossy_from(src: FixedI64<FracSrc>) -> Self
fn lossy_from(src: FixedI64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i8
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i8
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i16
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i16
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i32
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i32
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i64
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i64
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i128
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for i128
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for isize
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for isize
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u8
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u8
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u16
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u16
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u32
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u32
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u64
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u64
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u128
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for u128
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for usize
impl<FracSrc: LeEqU64> LossyFrom<FixedU64<FracSrc>> for usize
source§fn lossy_from(src: FixedU64<FracSrc>) -> Self
fn lossy_from(src: FixedU64<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i8
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i8
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i16
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i16
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i32
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i32
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i64
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i64
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i128
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for i128
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for isize
impl<FracSrc: LeEqU128> LossyFrom<FixedI128<FracSrc>> for isize
source§fn lossy_from(src: FixedI128<FracSrc>) -> Self
fn lossy_from(src: FixedI128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i8
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i8
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i16
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i16
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i32
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i32
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i64
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i64
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i128
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for i128
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for isize
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for isize
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u8
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u8
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u16
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u16
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u32
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u32
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u64
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u64
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u128
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for u128
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.
source§impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for usize
impl<FracSrc: LeEqU128> LossyFrom<FixedU128<FracSrc>> for usize
source§fn lossy_from(src: FixedU128<FracSrc>) -> Self
fn lossy_from(src: FixedU128<FracSrc>) -> Self
Converts a fixed-point number to an integer.
This conversion never fails (infallible) but may lose precision (lossy). Any fractional bits in the source are discarded, which rounds towards −∞.