[][src]Enum radix::RadixNum

pub enum RadixNum {
    // some variants omitted
}

A number in some radix.

Methods

impl RadixNum[src]

pub fn from_str(base: &str, radix: usize) -> RadixResult<Self>[src]

Convert a base encoded in a certain radix to a RadixNum.

pub fn as_str(&self) -> &str[src]

pub fn with_radix(&self, radix: usize) -> RadixResult<Self>[src]

Change the radix that self is encoded with. This does not change the represented value, but it does change its representation.

pub fn radix(&self) -> usize[src]

Retrieve the radix that self is encoded with.

pub fn as_decimal(&self) -> RadixResult<usize>[src]

pub fn digits<'c>(&'c self) -> impl Iterator<Item = char> + 'c[src]

Trait Implementations

impl From<usize> for RadixNum[src]

impl From<u8> for RadixNum[src]

impl From<u16> for RadixNum[src]

impl From<u32> for RadixNum[src]

impl From<u64> for RadixNum[src]

impl From<u128> for RadixNum[src]

impl Clone for RadixNum[src]

impl Eq for RadixNum[src]

impl Ord for RadixNum[src]

impl PartialEq<RadixNum> for RadixNum[src]

impl PartialOrd<RadixNum> for RadixNum[src]

impl Display for RadixNum[src]

impl Debug for RadixNum[src]

impl StructuralPartialEq for RadixNum[src]

impl StructuralEq for RadixNum[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]