pub struct SyntaxTree {
pub file: PathBuf,
pub items: Vec<Item>,
pub citation_spans: Vec<Range<usize>>,
}Expand description
Concrete syntax tree for a single .mos source file.
Fields§
§file: PathBuf§items: Vec<Item>§citation_spans: Vec<Range<usize>>Byte ranges from [@ through the contents, excluding ], for citations
encountered in markup, including unfinished or malformed citations.
Code, raw blocks, directive values, and comments contribute no ranges.
Trait Implementations§
Source§impl Clone for SyntaxTree
impl Clone for SyntaxTree
Source§fn clone(&self) -> SyntaxTree
fn clone(&self) -> SyntaxTree
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 moreAuto Trait Implementations§
impl Freeze for SyntaxTree
impl RefUnwindSafe for SyntaxTree
impl Send for SyntaxTree
impl Sync for SyntaxTree
impl Unpin for SyntaxTree
impl UnsafeUnpin for SyntaxTree
impl UnwindSafe for SyntaxTree
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