Trait IntegerBaseFunctions

Source
pub trait IntegerBaseFunctions {
    const IS_SIGNED: bool;

    // Required methods
    fn get_absolute_uint(&self) -> u64;
    fn is_val_negative(&self) -> bool;
    fn switch_sign_if_possible(&self) -> Self;
    fn get_zero() -> Self;
    fn get_bits_num() -> u8;
}

Required Associated Constants§

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntegerBaseFunctions for i8

Source§

impl IntegerBaseFunctions for i16

Source§

impl IntegerBaseFunctions for i32

Source§

impl IntegerBaseFunctions for i64

Source§

impl IntegerBaseFunctions for u8

Source§

impl IntegerBaseFunctions for u16

Source§

impl IntegerBaseFunctions for u32

Source§

impl IntegerBaseFunctions for u64

Implementors§