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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
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) -> half_bf16
fn lossy_from(src: f32) -> half_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) -> half_f16
fn lossy_from(src: f32) -> half_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) -> half_bf16
fn lossy_from(src: f64) -> half_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) -> half_f16
fn lossy_from(src: f64) -> half_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) -> half_bf16
fn lossy_from(src: i8) -> half_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) -> half_f16
fn lossy_from(src: i8) -> half_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) -> half_bf16
fn lossy_from(src: i16) -> half_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) -> half_f16
fn lossy_from(src: i16) -> half_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) -> half_bf16
fn lossy_from(src: i32) -> half_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) -> half_f16
fn lossy_from(src: i32) -> half_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) -> half_bf16
fn lossy_from(src: i64) -> half_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) -> half_f16
fn lossy_from(src: i64) -> half_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) -> half_bf16
fn lossy_from(src: i128) -> half_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) -> half_f16
fn lossy_from(src: i128) -> half_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) -> half_bf16
fn lossy_from(src: isize) -> half_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) -> half_f16
fn lossy_from(src: isize) -> half_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) -> half_bf16
fn lossy_from(src: u8) -> half_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) -> half_f16
fn lossy_from(src: u8) -> half_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) -> half_bf16
fn lossy_from(src: u16) -> half_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) -> half_f16
fn lossy_from(src: u16) -> half_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) -> half_bf16
fn lossy_from(src: u32) -> half_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) -> half_f16
fn lossy_from(src: u32) -> half_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) -> half_bf16
fn lossy_from(src: u64) -> half_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) -> half_f16
fn lossy_from(src: u64) -> half_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) -> half_bf16
fn lossy_from(src: u128) -> half_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) -> half_f16
fn lossy_from(src: u128) -> half_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) -> half_bf16
fn lossy_from(src: usize) -> half_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) -> half_f16
fn lossy_from(src: usize) -> half_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: half_bf16) -> Self
fn lossy_from(src: half_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: half_bf16) -> Self
fn lossy_from(src: half_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: half_bf16) -> Self
fn lossy_from(src: half_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: half_bf16) -> half_f16
fn lossy_from(src: half_bf16) -> half_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: half_f16) -> Self
fn lossy_from(src: half_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: half_f16) -> Self
fn lossy_from(src: half_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: half_f16) -> half_bf16
fn lossy_from(src: half_f16) -> half_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: half_f16) -> Self
fn lossy_from(src: half_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 half_bf16
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for half_bf16
Source§fn lossy_from(src: FixedI8<Frac>) -> half_bf16
fn lossy_from(src: FixedI8<Frac>) -> half_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 half_f16
impl<Frac: LeEqU8> LossyFrom<FixedI8<Frac>> for half_f16
Source§fn lossy_from(src: FixedI8<Frac>) -> half_f16
fn lossy_from(src: FixedI8<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for half_bf16
Source§fn lossy_from(src: FixedU8<Frac>) -> half_bf16
fn lossy_from(src: FixedU8<Frac>) -> half_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 half_f16
impl<Frac: LeEqU8> LossyFrom<FixedU8<Frac>> for half_f16
Source§fn lossy_from(src: FixedU8<Frac>) -> half_f16
fn lossy_from(src: FixedU8<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for half_bf16
Source§fn lossy_from(src: FixedI16<Frac>) -> half_bf16
fn lossy_from(src: FixedI16<Frac>) -> half_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 half_f16
impl<Frac: LeEqU16> LossyFrom<FixedI16<Frac>> for half_f16
Source§fn lossy_from(src: FixedI16<Frac>) -> half_f16
fn lossy_from(src: FixedI16<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for half_bf16
Source§fn lossy_from(src: FixedU16<Frac>) -> half_bf16
fn lossy_from(src: FixedU16<Frac>) -> half_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 half_f16
impl<Frac: LeEqU16> LossyFrom<FixedU16<Frac>> for half_f16
Source§fn lossy_from(src: FixedU16<Frac>) -> half_f16
fn lossy_from(src: FixedU16<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for half_bf16
Source§fn lossy_from(src: FixedI32<Frac>) -> half_bf16
fn lossy_from(src: FixedI32<Frac>) -> half_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 half_f16
impl<Frac: LeEqU32> LossyFrom<FixedI32<Frac>> for half_f16
Source§fn lossy_from(src: FixedI32<Frac>) -> half_f16
fn lossy_from(src: FixedI32<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for half_bf16
Source§fn lossy_from(src: FixedU32<Frac>) -> half_bf16
fn lossy_from(src: FixedU32<Frac>) -> half_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 half_f16
impl<Frac: LeEqU32> LossyFrom<FixedU32<Frac>> for half_f16
Source§fn lossy_from(src: FixedU32<Frac>) -> half_f16
fn lossy_from(src: FixedU32<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for half_bf16
Source§fn lossy_from(src: FixedI64<Frac>) -> half_bf16
fn lossy_from(src: FixedI64<Frac>) -> half_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 half_f16
impl<Frac: LeEqU64> LossyFrom<FixedI64<Frac>> for half_f16
Source§fn lossy_from(src: FixedI64<Frac>) -> half_f16
fn lossy_from(src: FixedI64<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for half_bf16
Source§fn lossy_from(src: FixedU64<Frac>) -> half_bf16
fn lossy_from(src: FixedU64<Frac>) -> half_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 half_f16
impl<Frac: LeEqU64> LossyFrom<FixedU64<Frac>> for half_f16
Source§fn lossy_from(src: FixedU64<Frac>) -> half_f16
fn lossy_from(src: FixedU64<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for half_bf16
Source§fn lossy_from(src: FixedI128<Frac>) -> half_bf16
fn lossy_from(src: FixedI128<Frac>) -> half_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 half_f16
impl<Frac: LeEqU128> LossyFrom<FixedI128<Frac>> for half_f16
Source§fn lossy_from(src: FixedI128<Frac>) -> half_f16
fn lossy_from(src: FixedI128<Frac>) -> half_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 half_bf16
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for half_bf16
Source§fn lossy_from(src: FixedU128<Frac>) -> half_bf16
fn lossy_from(src: FixedU128<Frac>) -> half_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 half_f16
impl<Frac: LeEqU128> LossyFrom<FixedU128<Frac>> for half_f16
Source§fn lossy_from(src: FixedU128<Frac>) -> half_f16
fn lossy_from(src: FixedU128<Frac>) -> half_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 −∞.