Trait rug::float::ToSmall

source ·
pub trait ToSmall: SealedToSmall { }
👎Deprecated since 1.23.0: use MiniFloat and ToMini instead
Expand description

Types implementing this trait can be converted to SmallFloat.

The following are implemented when T implements ToSmall:

This trait is sealed and cannot be implemented for more types; it is implemented for the integer types i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128 and usize, and for the floating-point types f32 and f64.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToSmall for f32

source§

impl ToSmall for f64

source§

impl ToSmall for i8

source§

impl ToSmall for i16

source§

impl ToSmall for i32

source§

impl ToSmall for i64

source§

impl ToSmall for i128

source§

impl ToSmall for isize

source§

impl ToSmall for u8

source§

impl ToSmall for u16

source§

impl ToSmall for u32

source§

impl ToSmall for u64

source§

impl ToSmall for u128

source§

impl ToSmall for usize

Implementors§