Trait fixed::traits::LosslessTryFrom
source · pub trait LosslessTryFrom<Src>: Sized {
// Required method
fn lossless_try_from(src: Src) -> Option<Self>;
}
Expand description
This trait provides lossless conversions that might be fallible.
This trait is implemented for conversions between integer primitives, floating-point primitives and fixed-point numbers.
§Examples
use fixed::traits::LosslessTryFrom;
use fixed::types::{I24F8, I4F12};
// original is 0x000001.23, lossless is 0x1.230
let original = I24F8::from_bits(0x0000_0123);
let lossless = I4F12::lossless_try_from(original);
assert_eq!(lossless, Some(I4F12::from_bits(0x1230)));
// too_large is 0x000012.34, 0x12.340 does not fit in I4F12
let too_large = I24F8::from_bits(0x0000_1234);
let overflow = I4F12::lossless_try_from(too_large);
assert_eq!(overflow, None);
Required Methods§
sourcefn lossless_try_from(src: Src) -> Option<Self>
fn lossless_try_from(src: Src) -> Option<Self>
Performs the conversion.
Object Safety§
Implementations on Foreign Types§
source§impl LosslessTryFrom<bool> for bool
impl LosslessTryFrom<bool> for bool
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for i8
impl LosslessTryFrom<bool> for i8
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for i16
impl LosslessTryFrom<bool> for i16
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for i32
impl LosslessTryFrom<bool> for i32
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for i64
impl LosslessTryFrom<bool> for i64
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for i128
impl LosslessTryFrom<bool> for i128
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for isize
impl LosslessTryFrom<bool> for isize
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for u8
impl LosslessTryFrom<bool> for u8
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for u16
impl LosslessTryFrom<bool> for u16
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for u32
impl LosslessTryFrom<bool> for u32
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for u64
impl LosslessTryFrom<bool> for u64
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for u128
impl LosslessTryFrom<bool> for u128
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bool> for usize
impl LosslessTryFrom<bool> for usize
source§fn lossless_try_from(src: bool) -> Option<Self>
fn lossless_try_from(src: bool) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f32> for f32
impl LosslessTryFrom<f32> for f32
source§fn lossless_try_from(src: f32) -> Option<Self>
fn lossless_try_from(src: f32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f32> for f64
impl LosslessTryFrom<f32> for f64
source§fn lossless_try_from(src: f32) -> Option<Self>
fn lossless_try_from(src: f32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f64> for f64
impl LosslessTryFrom<f64> for f64
source§fn lossless_try_from(src: f64) -> Option<Self>
fn lossless_try_from(src: f64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for f32
impl LosslessTryFrom<i8> for f32
source§impl LosslessTryFrom<i8> for f64
impl LosslessTryFrom<i8> for f64
source§impl LosslessTryFrom<i8> for i8
impl LosslessTryFrom<i8> for i8
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for i16
impl LosslessTryFrom<i8> for i16
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for i32
impl LosslessTryFrom<i8> for i32
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for i64
impl LosslessTryFrom<i8> for i64
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for i128
impl LosslessTryFrom<i8> for i128
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for isize
impl LosslessTryFrom<i8> for isize
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for u8
impl LosslessTryFrom<i8> for u8
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for u16
impl LosslessTryFrom<i8> for u16
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for u32
impl LosslessTryFrom<i8> for u32
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for u64
impl LosslessTryFrom<i8> for u64
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for u128
impl LosslessTryFrom<i8> for u128
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for usize
impl LosslessTryFrom<i8> for usize
source§fn lossless_try_from(src: i8) -> Option<Self>
fn lossless_try_from(src: i8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i8> for f16
impl LosslessTryFrom<i8> for f16
source§impl LosslessTryFrom<i16> for f32
impl LosslessTryFrom<i16> for f32
source§impl LosslessTryFrom<i16> for f64
impl LosslessTryFrom<i16> for f64
source§impl LosslessTryFrom<i16> for i8
impl LosslessTryFrom<i16> for i8
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for i16
impl LosslessTryFrom<i16> for i16
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for i32
impl LosslessTryFrom<i16> for i32
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for i64
impl LosslessTryFrom<i16> for i64
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for i128
impl LosslessTryFrom<i16> for i128
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for isize
impl LosslessTryFrom<i16> for isize
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for u8
impl LosslessTryFrom<i16> for u8
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for u16
impl LosslessTryFrom<i16> for u16
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for u32
impl LosslessTryFrom<i16> for u32
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for u64
impl LosslessTryFrom<i16> for u64
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for u128
impl LosslessTryFrom<i16> for u128
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i16> for usize
impl LosslessTryFrom<i16> for usize
source§fn lossless_try_from(src: i16) -> Option<Self>
fn lossless_try_from(src: i16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for f64
impl LosslessTryFrom<i32> for f64
source§impl LosslessTryFrom<i32> for i8
impl LosslessTryFrom<i32> for i8
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for i16
impl LosslessTryFrom<i32> for i16
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for i32
impl LosslessTryFrom<i32> for i32
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for i64
impl LosslessTryFrom<i32> for i64
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for i128
impl LosslessTryFrom<i32> for i128
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for isize
impl LosslessTryFrom<i32> for isize
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for u8
impl LosslessTryFrom<i32> for u8
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for u16
impl LosslessTryFrom<i32> for u16
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for u32
impl LosslessTryFrom<i32> for u32
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for u64
impl LosslessTryFrom<i32> for u64
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for u128
impl LosslessTryFrom<i32> for u128
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i32> for usize
impl LosslessTryFrom<i32> for usize
source§fn lossless_try_from(src: i32) -> Option<Self>
fn lossless_try_from(src: i32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for i8
impl LosslessTryFrom<i64> for i8
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for i16
impl LosslessTryFrom<i64> for i16
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for i32
impl LosslessTryFrom<i64> for i32
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for i64
impl LosslessTryFrom<i64> for i64
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for i128
impl LosslessTryFrom<i64> for i128
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for isize
impl LosslessTryFrom<i64> for isize
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for u8
impl LosslessTryFrom<i64> for u8
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for u16
impl LosslessTryFrom<i64> for u16
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for u32
impl LosslessTryFrom<i64> for u32
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for u64
impl LosslessTryFrom<i64> for u64
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for u128
impl LosslessTryFrom<i64> for u128
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i64> for usize
impl LosslessTryFrom<i64> for usize
source§fn lossless_try_from(src: i64) -> Option<Self>
fn lossless_try_from(src: i64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for i8
impl LosslessTryFrom<i128> for i8
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for i16
impl LosslessTryFrom<i128> for i16
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for i32
impl LosslessTryFrom<i128> for i32
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for i64
impl LosslessTryFrom<i128> for i64
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for i128
impl LosslessTryFrom<i128> for i128
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for isize
impl LosslessTryFrom<i128> for isize
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for u8
impl LosslessTryFrom<i128> for u8
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for u16
impl LosslessTryFrom<i128> for u16
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for u32
impl LosslessTryFrom<i128> for u32
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for u64
impl LosslessTryFrom<i128> for u64
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for u128
impl LosslessTryFrom<i128> for u128
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<i128> for usize
impl LosslessTryFrom<i128> for usize
source§fn lossless_try_from(src: i128) -> Option<Self>
fn lossless_try_from(src: i128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for i8
impl LosslessTryFrom<isize> for i8
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for i16
impl LosslessTryFrom<isize> for i16
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for i32
impl LosslessTryFrom<isize> for i32
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for i64
impl LosslessTryFrom<isize> for i64
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for i128
impl LosslessTryFrom<isize> for i128
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for isize
impl LosslessTryFrom<isize> for isize
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for u8
impl LosslessTryFrom<isize> for u8
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for u16
impl LosslessTryFrom<isize> for u16
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for u32
impl LosslessTryFrom<isize> for u32
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for u64
impl LosslessTryFrom<isize> for u64
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for u128
impl LosslessTryFrom<isize> for u128
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<isize> for usize
impl LosslessTryFrom<isize> for usize
source§fn lossless_try_from(src: isize) -> Option<Self>
fn lossless_try_from(src: isize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for f32
impl LosslessTryFrom<u8> for f32
source§impl LosslessTryFrom<u8> for f64
impl LosslessTryFrom<u8> for f64
source§impl LosslessTryFrom<u8> for i8
impl LosslessTryFrom<u8> for i8
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for i16
impl LosslessTryFrom<u8> for i16
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for i32
impl LosslessTryFrom<u8> for i32
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for i64
impl LosslessTryFrom<u8> for i64
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for i128
impl LosslessTryFrom<u8> for i128
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for isize
impl LosslessTryFrom<u8> for isize
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for u8
impl LosslessTryFrom<u8> for u8
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for u16
impl LosslessTryFrom<u8> for u16
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for u32
impl LosslessTryFrom<u8> for u32
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for u64
impl LosslessTryFrom<u8> for u64
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for u128
impl LosslessTryFrom<u8> for u128
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for usize
impl LosslessTryFrom<u8> for usize
source§fn lossless_try_from(src: u8) -> Option<Self>
fn lossless_try_from(src: u8) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u8> for f16
impl LosslessTryFrom<u8> for f16
source§impl LosslessTryFrom<u16> for f32
impl LosslessTryFrom<u16> for f32
source§impl LosslessTryFrom<u16> for f64
impl LosslessTryFrom<u16> for f64
source§impl LosslessTryFrom<u16> for i8
impl LosslessTryFrom<u16> for i8
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for i16
impl LosslessTryFrom<u16> for i16
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for i32
impl LosslessTryFrom<u16> for i32
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for i64
impl LosslessTryFrom<u16> for i64
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for i128
impl LosslessTryFrom<u16> for i128
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for isize
impl LosslessTryFrom<u16> for isize
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for u8
impl LosslessTryFrom<u16> for u8
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for u16
impl LosslessTryFrom<u16> for u16
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for u32
impl LosslessTryFrom<u16> for u32
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for u64
impl LosslessTryFrom<u16> for u64
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for u128
impl LosslessTryFrom<u16> for u128
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u16> for usize
impl LosslessTryFrom<u16> for usize
source§fn lossless_try_from(src: u16) -> Option<Self>
fn lossless_try_from(src: u16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for f64
impl LosslessTryFrom<u32> for f64
source§impl LosslessTryFrom<u32> for i8
impl LosslessTryFrom<u32> for i8
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for i16
impl LosslessTryFrom<u32> for i16
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for i32
impl LosslessTryFrom<u32> for i32
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for i64
impl LosslessTryFrom<u32> for i64
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for i128
impl LosslessTryFrom<u32> for i128
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for isize
impl LosslessTryFrom<u32> for isize
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for u8
impl LosslessTryFrom<u32> for u8
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for u16
impl LosslessTryFrom<u32> for u16
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for u32
impl LosslessTryFrom<u32> for u32
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for u64
impl LosslessTryFrom<u32> for u64
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for u128
impl LosslessTryFrom<u32> for u128
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u32> for usize
impl LosslessTryFrom<u32> for usize
source§fn lossless_try_from(src: u32) -> Option<Self>
fn lossless_try_from(src: u32) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for i8
impl LosslessTryFrom<u64> for i8
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for i16
impl LosslessTryFrom<u64> for i16
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for i32
impl LosslessTryFrom<u64> for i32
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for i64
impl LosslessTryFrom<u64> for i64
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for i128
impl LosslessTryFrom<u64> for i128
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for isize
impl LosslessTryFrom<u64> for isize
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for u8
impl LosslessTryFrom<u64> for u8
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for u16
impl LosslessTryFrom<u64> for u16
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for u32
impl LosslessTryFrom<u64> for u32
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for u64
impl LosslessTryFrom<u64> for u64
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for u128
impl LosslessTryFrom<u64> for u128
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u64> for usize
impl LosslessTryFrom<u64> for usize
source§fn lossless_try_from(src: u64) -> Option<Self>
fn lossless_try_from(src: u64) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for i8
impl LosslessTryFrom<u128> for i8
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for i16
impl LosslessTryFrom<u128> for i16
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for i32
impl LosslessTryFrom<u128> for i32
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for i64
impl LosslessTryFrom<u128> for i64
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for i128
impl LosslessTryFrom<u128> for i128
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for isize
impl LosslessTryFrom<u128> for isize
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for u8
impl LosslessTryFrom<u128> for u8
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for u16
impl LosslessTryFrom<u128> for u16
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for u32
impl LosslessTryFrom<u128> for u32
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for u64
impl LosslessTryFrom<u128> for u64
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for u128
impl LosslessTryFrom<u128> for u128
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<u128> for usize
impl LosslessTryFrom<u128> for usize
source§fn lossless_try_from(src: u128) -> Option<Self>
fn lossless_try_from(src: u128) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for i8
impl LosslessTryFrom<usize> for i8
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for i16
impl LosslessTryFrom<usize> for i16
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for i32
impl LosslessTryFrom<usize> for i32
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for i64
impl LosslessTryFrom<usize> for i64
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for i128
impl LosslessTryFrom<usize> for i128
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for isize
impl LosslessTryFrom<usize> for isize
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for u8
impl LosslessTryFrom<usize> for u8
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for u16
impl LosslessTryFrom<usize> for u16
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for u32
impl LosslessTryFrom<usize> for u32
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for u64
impl LosslessTryFrom<usize> for u64
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for u128
impl LosslessTryFrom<usize> for u128
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion may fail (fallible) but does not lose any precision (lossless).
source§impl LosslessTryFrom<usize> for usize
impl LosslessTryFrom<usize> for usize
source§fn lossless_try_from(src: usize) -> Option<Self>
fn lossless_try_from(src: usize) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bf16> for f32
impl LosslessTryFrom<bf16> for f32
source§fn lossless_try_from(src: bf16) -> Option<Self>
fn lossless_try_from(src: bf16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bf16> for f64
impl LosslessTryFrom<bf16> for f64
source§fn lossless_try_from(src: bf16) -> Option<Self>
fn lossless_try_from(src: bf16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<bf16> for bf16
impl LosslessTryFrom<bf16> for bf16
source§fn lossless_try_from(src: bf16) -> Option<Self>
fn lossless_try_from(src: bf16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f16> for f32
impl LosslessTryFrom<f16> for f32
source§fn lossless_try_from(src: f16) -> Option<Self>
fn lossless_try_from(src: f16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f16> for f64
impl LosslessTryFrom<f16> for f64
source§fn lossless_try_from(src: f16) -> Option<Self>
fn lossless_try_from(src: f16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).
source§impl LosslessTryFrom<f16> for f16
impl LosslessTryFrom<f16> for f16
source§fn lossless_try_from(src: f16) -> Option<Self>
fn lossless_try_from(src: f16) -> Option<Self>
Converts a number.
This conversion actually never fails (infallible) and does not lose any precision (lossless).