pub struct LitUnit {
pub span: Range<usize>,
}Expand description
The unit type, written as (). The unit type is by-default returned by functions that do not
return a value.
Fields§
§span: Range<usize>The region of the source code that this literal was parsed from.
Trait Implementations§
Source§impl Latex for LitUnit
impl Latex for LitUnit
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 LitUnit
impl<'source> Parse<'source> for LitUnit
impl Eq for LitUnit
impl StructuralPartialEq for LitUnit
Auto Trait Implementations§
impl Freeze for LitUnit
impl RefUnwindSafe for LitUnit
impl Send for LitUnit
impl Sync for LitUnit
impl Unpin for LitUnit
impl UnwindSafe for LitUnit
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