pub struct Radix(/* private fields */);Expand description
Radix for parse/format (bases 2 through 36).
Implementations§
Source§impl Radix
impl Radix
Sourcepub const fn commensurable_shift(self) -> Option<usize>
pub const fn commensurable_shift(self) -> Option<usize>
Returns log2(base) when the base is a power of two.
Sourcepub const fn uses_underscore_exponent(self) -> bool
pub const fn uses_underscore_exponent(self) -> bool
Whether the scientific exponent must use _e (digit e appears in mantissa digits).
Sourcepub fn bits_per_digit(self) -> usize
pub fn bits_per_digit(self) -> usize
Approximate bits per digit (for buffer sizing).
Trait Implementations§
impl Copy for Radix
impl Eq for Radix
impl StructuralPartialEq for Radix
Auto Trait Implementations§
impl Freeze for Radix
impl RefUnwindSafe for Radix
impl Send for Radix
impl Sync for Radix
impl Unpin for Radix
impl UnsafeUnpin for Radix
impl UnwindSafe for Radix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more