pub struct ParsedFile { /* private fields */ }Implementations§
Source§impl ParsedFile
impl ParsedFile
pub fn new(tokens: TokenStore, tree: ParseTreeStorage, root: NodeId) -> Self
pub const fn tokens(&self) -> &TokenStore
pub const fn storage(&self) -> &ParseTreeStorage
pub const fn root_id(&self) -> NodeId
pub fn tree(&self) -> Node<'_>
pub fn node(&self, id: NodeId) -> Option<Node<'_>>
pub fn into_parts(self) -> (TokenStore, ParseTreeStorage, NodeId)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ParsedFile
impl !Send for ParsedFile
impl !Sync for ParsedFile
impl !UnwindSafe for ParsedFile
impl Freeze for ParsedFile
impl Unpin for ParsedFile
impl UnsafeUnpin for ParsedFile
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