ToI256

Trait ToI256 

Source
pub trait ToI256 {
    // Required method
    fn to_i256(&self) -> Option<i256>;
}
Expand description

Types that can potentially be converted to an i256.

Required Methods§

Source

fn to_i256(&self) -> Option<i256>

Converts the value of self to an i256. If the value cannot be represented by an i256, then None is returned.

Implementations on Foreign Types§

Source§

impl ToI256 for i8

Source§

impl ToI256 for i16

Source§

impl ToI256 for i32

Source§

impl ToI256 for i64

Source§

impl ToI256 for i128

Source§

impl ToI256 for u8

Source§

impl ToI256 for u16

Source§

impl ToI256 for u32

Source§

impl ToI256 for u64

Source§

impl ToI256 for u128

Implementors§