pub trait TypedStablePtr {
type SyntaxNode: TypedSyntaxNode;
// Required methods
fn lookup(&self, db: &dyn SyntaxGroup) -> Self::SyntaxNode;
fn untyped(&self) -> SyntaxStablePtrId;
}
Expand description
Trait for stable pointers to syntax nodes.
Required Associated Types§
Required Methods§
sourcefn lookup(&self, db: &dyn SyntaxGroup) -> Self::SyntaxNode
fn lookup(&self, db: &dyn SyntaxGroup) -> Self::SyntaxNode
Returns the syntax node pointed to by this stable pointer.
sourcefn untyped(&self) -> SyntaxStablePtrId
fn untyped(&self) -> SyntaxStablePtrId
Returns the untyped stable pointer.