pub struct LitFloat {
pub value: String,
pub span: Range<usize>,
}Expand description
A floating-point literal, represented as a String.
Fields§
§value: StringThe value of the floating-point 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 LitFloat
impl Latex for LitFloat
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 LitFloat
impl StructuralPartialEq for LitFloat
Auto Trait Implementations§
impl Freeze for LitFloat
impl RefUnwindSafe for LitFloat
impl Send for LitFloat
impl Sync for LitFloat
impl Unpin for LitFloat
impl UnwindSafe for LitFloat
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