Struct syntax::ast::File [] [src]

pub struct File {
    pub lines: Vec<Line>,
    pub span: ByteSpan,
}

Fields

Methods

impl File
[src]

impl File
[src]

Try to parse the provided string as this type of AST node.

Trait Implementations

impl Debug for File
[src]

Formats the value using the given formatter. Read more

impl Clone for File
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for File
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl HeapSizeOf for File
[src]

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more

impl AstNode for File
[src]

Auto Trait Implementations

impl Send for File

impl Sync for File