pub struct LitRadix {
pub base: u8,
pub value: String,
pub span: Range<usize>,
}Expand description
A number written in radix notation. Radix notation allows users to express integers in a base other than base 10.
Fields§
§base: u8The radix of the literal. This value must be between 2 and 64, inclusive.
value: StringThe number, expressed in the given radix.
span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl Latex for LitRadix
impl Latex for LitRadix
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for LitRadix
impl<'source> Parse<'source> for LitRadix
impl Eq for LitRadix
impl StructuralPartialEq for LitRadix
Auto Trait Implementations§
impl Freeze for LitRadix
impl RefUnwindSafe for LitRadix
impl Send for LitRadix
impl Sync for LitRadix
impl Unpin for LitRadix
impl UnwindSafe for LitRadix
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