Trait SignedInfo

Source
pub trait SignedInfo {
    // Required method
    fn is_signed(&self) -> bool;
}
Expand description

A trait to find out if a variable type is signed or unsigned for integer types.

Required Methods§

Source

fn is_signed(&self) -> bool

Returns true if the variable is signed.

Implementations on Foreign Types§

Source§

impl SignedInfo for i8

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for i16

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for i32

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for i64

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for u8

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for u16

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for u32

Source§

fn is_signed(&self) -> bool

Source§

impl SignedInfo for u64

Source§

fn is_signed(&self) -> bool

Implementors§