Struct apint::Radix[][src]

pub struct Radix(_);

A radix for parsing strings as ApInts.

A radix represents the range of valid input characters that represent values of the to-be-parsed ApInt.

Supported radices range from binary radix (2) up to full case-insensitive alphabet and numerals (36).

Examples

  • The binary 2-radix supports only 0 and 1 as input.
  • The decimal 10-radix supports 0,1,...9 as input characters.
  • The hex-dec 16-radix supports inputs characters within 0,..,9 and a,..,f.

Methods

impl Radix
[src]

Create a new Radix from the given u8.

Errors

  • If the given value is not within the valid radix range of 2..36.

Returns the u8 representation of this Radix.

Trait Implementations

impl Debug for Radix
[src]

Formats the value using the given formatter. Read more

impl Copy for Radix
[src]

impl Clone for Radix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Radix
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Radix
[src]

impl Hash for Radix
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<u8> for Radix
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Radix

impl Sync for Radix