pub struct LitInt {
pub value: String,
pub span: Range<usize>,
}Expand description
An integer literal, representing as a String.
Fields§
§value: StringThe value of the integer literal as a string.
span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl Latex for LitInt
impl Latex for LitInt
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.impl Eq for LitInt
impl StructuralPartialEq for LitInt
Auto Trait Implementations§
impl Freeze for LitInt
impl RefUnwindSafe for LitInt
impl Send for LitInt
impl Sync for LitInt
impl Unpin for LitInt
impl UnwindSafe for LitInt
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