[src]

Struct std::fmt::Radix

pub struct Radix {
    // some fields omitted
}

A radix with in the range of 2..36.

Trait Implementations

impl GenericRadix for Radix

fn base(&self) -> u8

The number of digits.

fn digit(&self, x: u8) -> u8

Converts an integer to corresponding radix digit.

fn prefix(&self) -> &'static str

A radix-specific prefix string.

fn fmt_int<T: Int>(&self, x: T, f: &mut Formatter) -> Result

Format an integer using the radix using a formatter.

Derived Implementations

impl Eq for Radix

fn eq(&self, __arg_0: &Radix) -> bool

fn ne(&self, __arg_0: &Radix) -> bool

impl Clone for Radix

fn clone(&self) -> Radix

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

fn clone_from(&mut self, source: &Self)

Perform copy-assignment from source.

a.clone_from(&b) is equivalent to a = b.clone() in functionality, but can be overridden to reuse the resources of a to avoid unnecessary allocations.