pub struct File {
pub inner_pragmas: Vec<Pragma>,
pub span: Span,
pub nodes: Vec<Node>,
}Fields§
§inner_pragmas: Vec<Pragma>§span: Span§nodes: Vec<Node>Trait Implementations§
Source§impl Parse for File
impl Parse for File
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 File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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