pub struct LexedToken<'a> {
pub kind: TokenKind,
pub span: Span,
/* private fields */
}Expand description
Token produced by the shell lexer.
Public consumers can inspect the token kind and source span. Word payloads, descriptor payloads, and lexer recovery details are currently parser-internal so the lexer can evolve without expanding the public API.
Fields§
§kind: TokenKindToken kind used by the parser.
span: SpanSource span covered by the token.
Trait Implementations§
Source§impl<'a> Clone for LexedToken<'a>
impl<'a> Clone for LexedToken<'a>
Source§fn clone(&self) -> LexedToken<'a>
fn clone(&self) -> LexedToken<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for LexedToken<'a>
impl<'a> Debug for LexedToken<'a>
Source§impl<'a> PartialEq for LexedToken<'a>
impl<'a> PartialEq for LexedToken<'a>
Source§fn eq(&self, other: &LexedToken<'a>) -> bool
fn eq(&self, other: &LexedToken<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for LexedToken<'a>
impl<'a> StructuralPartialEq for LexedToken<'a>
Auto Trait Implementations§
impl<'a> Freeze for LexedToken<'a>
impl<'a> RefUnwindSafe for LexedToken<'a>
impl<'a> Send for LexedToken<'a>
impl<'a> Sync for LexedToken<'a>
impl<'a> Unpin for LexedToken<'a>
impl<'a> UnsafeUnpin for LexedToken<'a>
impl<'a> UnwindSafe for LexedToken<'a>
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