Enum radix::RadixNum
[−]
[src]
pub enum RadixNum { // some variants omitted }
A number in some radix.
Methods
impl RadixNum
[src]
fn from_str(number: &str, radix: usize) -> RadixResult<Self>
Convert a number
encoded in a certain radix
to a RadixNum
.
fn as_str(&self) -> &str
fn with_radix(&self, radix: usize) -> RadixResult<Self>
Change the radix that self
is encoded with. This does not change
the represented value, but it does change its representation.
fn radix(&self) -> usize
Retrieve the radix that self
is encoded with.
fn as_decimal(&self) -> RadixResult<usize>
fn digits<'c>(&'c self) -> impl Iterator<Item = char>
Trait Implementations
impl Clone for RadixNum
[src]
fn clone(&self) -> RadixNum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for RadixNum
[src]
impl PartialEq for RadixNum
[src]
fn eq(&self, __arg_0: &RadixNum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RadixNum) -> bool
This method tests for !=
.
impl Eq for RadixNum
[src]
impl PartialOrd for RadixNum
[src]
fn partial_cmp(&self, __arg_0: &RadixNum) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &RadixNum) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &RadixNum) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &RadixNum) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &RadixNum) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for RadixNum
[src]
fn cmp(&self, __arg_0: &RadixNum) -> Ordering
This method returns an Ordering
between self
and other
. Read more