Struct fpe::ff1::BinaryNumeralString [−][src]
pub struct BinaryNumeralString(_);
A numeral string with radix 2.
Methods
impl BinaryNumeralString
[src]
impl BinaryNumeralString
pub fn from_bytes_le(s: &[u8]) -> Self
[src]
pub fn from_bytes_le(s: &[u8]) -> Self
Creates a BinaryNumeralString from a byte slice, with each byte interpreted in little-endian bit order.
pub fn to_bytes_le(&self) -> Vec<u8>
[src]
pub fn to_bytes_le(&self) -> Vec<u8>
Returns a Vec
Trait Implementations
impl NumeralString for BinaryNumeralString
[src]
impl NumeralString for BinaryNumeralString
fn is_valid(&self, radix: u32) -> bool
[src]
fn is_valid(&self, radix: u32) -> bool
Returns whether this numeral string is valid for the base radix.
fn len(&self) -> usize
[src]
fn len(&self) -> usize
Returns the number of numerals in this numeral string.
fn split(&self, u: usize) -> (Self, Self)
[src]
fn split(&self, u: usize) -> (Self, Self)
Splits this numeral string into two sections X[..u] and X[u..].
fn concat(a: Self, b: Self) -> Self
[src]
fn concat(a: Self, b: Self) -> Self
Concatenates two numeral strings.
fn num_radix(&self, radix: &BigUint) -> BigUint
[src]
fn num_radix(&self, radix: &BigUint) -> BigUint
The number that this numeral string represents in the base radix when the numerals are valued in decreasing order of significance (big-endian order). Read more
fn str_radix(x: BigUint, radix: &BigUint, m: usize) -> Self
[src]
fn str_radix(x: BigUint, radix: &BigUint, m: usize) -> Self
Given a non-negative integer x less than radixm, returns the representation of x as a string of m numerals in base radix, in decreasing order of significance (big-endian order). Read more
Auto Trait Implementations
impl Send for BinaryNumeralString
impl Send for BinaryNumeralString
impl Sync for BinaryNumeralString
impl Sync for BinaryNumeralString