Trait rug::integer::ToSmall

source ·
pub trait ToSmall: SealedToSmall { }
Expand description

Types implementing this trait can be converted to SmallInteger.

The following are implemented when T implements ToSmall:

This trait is sealed and cannot be implemented for more types; it is implemented for bool and the unsigned integer types u8, u16, u32, u64, u128 and usize.

Implementations on Foreign Types§

source§

impl ToSmall for i8

source§

impl ToSmall for i16

source§

impl ToSmall for bool

source§

impl ToSmall for i32

source§

impl ToSmall for i128

source§

impl ToSmall for usize

source§

impl ToSmall for isize

source§

impl ToSmall for u128

source§

impl ToSmall for u16

source§

impl ToSmall for u32

source§

impl ToSmall for i64

source§

impl ToSmall for u64

source§

impl ToSmall for u8

Implementors§