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§
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
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.