pub struct Lit {
pub kind: LitKind,
pub span: Span,
}Fields§
§kind: LitKind§span: SpanTrait Implementations§
Source§impl Parse for Lit
impl Parse for Lit
Source§fn partial_parse_with_ctx<I: IntoIterator<Item = Token>>(
partial: bool,
ctx: ParseCtx<'_>,
token_stream: I,
) -> Result<Self, ()>
fn partial_parse_with_ctx<I: IntoIterator<Item = Token>>( partial: bool, ctx: ParseCtx<'_>, token_stream: I, ) -> Result<Self, ()>
Parse an AST node with a shared parsing context. Errors are emitted into
ctx. Read moreSource§fn parse_with_ctx<I: IntoIterator<Item = Token>>(
ctx: ParseCtx<'_>,
token_stream: I,
) -> Result<Self, ()>
fn parse_with_ctx<I: IntoIterator<Item = Token>>( ctx: ParseCtx<'_>, token_stream: I, ) -> Result<Self, ()>
Parse an AST node with a shared parsing context. Errors are emitted into
ctx. Read moreSource§fn partial_parse_with_interner(
partial: bool,
source: &str,
span_base: u32,
interner: &mut Interner,
) -> Result<Self, Vec<Error>>
fn partial_parse_with_interner( partial: bool, source: &str, span_base: u32, interner: &mut Interner, ) -> Result<Self, Vec<Error>>
Convenience method for parsing source without a shared context. Errors are returned
in the
Err variant. Read moreSource§fn parse_with_interner(
source: &str,
span_base: u32,
interner: &mut Interner,
) -> Result<Self, Vec<Error>>
fn parse_with_interner( source: &str, span_base: u32, interner: &mut Interner, ) -> Result<Self, Vec<Error>>
Convenience method for parsing source without a shared context. Errors are returned
in the
Err variant. Read moreimpl Eq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl Freeze for Lit
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnsafeUnpin for Lit
impl UnwindSafe for Lit
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