Trait fpe::ff1::NumeralString [−][src]
pub trait NumeralString: Sized {
type Num: Numeral;
fn is_valid(&self, radix: u32) -> bool;
fn len(&self) -> usize;
fn split(&self, u: usize) -> (Self, Self);
fn concat(a: Self, b: Self) -> Self;
fn num_radix(&self, radix: u32) -> Self::Num;
fn str_radix(x: Self::Num, radix: u32, m: usize) -> Self;
}
Expand description
For a given base, a finite, ordered sequence of numerals for the base.
Associated Types
Required methods
Returns whether this numeral string is valid for the base radix.
Splits this numeral string into two sections X[..u] and X[u..].
The number that this numeral string represents in the base radix when the numerals are valued in decreasing order of significance (big-endian order).