pub struct LitBool {
pub value: bool,
pub span: Range<usize>,
}Expand description
A boolean literal, either true or false.
Fields§
§value: boolThe value of the boolean literal.
span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl Latex for LitBool
impl Latex for LitBool
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 LitBool
impl<'source> Parse<'source> for LitBool
impl Eq for LitBool
impl StructuralPartialEq for LitBool
Auto Trait Implementations§
impl Freeze for LitBool
impl RefUnwindSafe for LitBool
impl Send for LitBool
impl Sync for LitBool
impl Unpin for LitBool
impl UnwindSafe for LitBool
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