pub struct File { /* private fields */ }
Expand description
File represents a parse tree for a single Rust file.
Implementations
sourceimpl File
impl File
pub fn parse(text: &str) -> File
pub fn reparse(&self, edit: &AtomEdit) -> File
pub fn incremental_reparse(&self, edit: &AtomEdit) -> Option<File>
sourcepub fn syntax(&self) -> SyntaxNodeRef<'_>
pub fn syntax(&self) -> SyntaxNodeRef<'_>
Untyped homogeneous representation of the parse tree.
pub fn errors(&self) -> Vec<SyntaxError>
Trait Implementations
impl Eq for File
impl StructuralEq for File
impl StructuralPartialEq for File
Auto Trait Implementations
impl !RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl !UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more