pub struct Root { /* private fields */ }Expand description
Typed document root.
Implementations§
Source§impl Root
impl Root
Sourcepub fn syntax(&self) -> &SyntaxNode
pub fn syntax(&self) -> &SyntaxNode
Returns the underlying Rowan node.
Sourcepub fn records(&self) -> impl Iterator<Item = Record> + '_
pub fn records(&self) -> impl Iterator<Item = Record> + '_
Iterates over records in source order.
Sourcepub fn source_range(&self) -> SourceSpan
pub fn source_range(&self) -> SourceSpan
Returns the complete source range.
Trait Implementations§
impl Eq for Root
impl StructuralPartialEq for Root
Auto Trait Implementations§
impl !RefUnwindSafe for Root
impl !Send for Root
impl !Sync for Root
impl !UnwindSafe for Root
impl Freeze for Root
impl Unpin for Root
impl UnsafeUnpin for Root
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