Trait Radix

Source
pub trait Radix {
    // Required methods
    fn binary(&self) -> Self;
    fn octal(&self) -> Self;
    fn decimal(&self) -> Self;
    fn hex(&self) -> Self;
    fn hexl(&self) -> Self;
}
Expand description

Default Radix type conversion for Digits

Required Methods§

Source

fn binary(&self) -> Self

Convert current Digits to binary

Source

fn octal(&self) -> Self

Convert current Digits to octal

Source

fn decimal(&self) -> Self

Convert current Digits to decimal

Source

fn hex(&self) -> Self

Convert current Digits to hexadecimal

Source

fn hexl(&self) -> Self

Convert current Digits to lowercase hexadecimal

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.

Implementors§