Trait cairo_lang_syntax::node::TypedSyntaxNode
source · pub trait TypedSyntaxNode {
type StablePtr;
type Green;
const OPTIONAL_KIND: Option<SyntaxKind>;
// Required methods
fn missing(db: &dyn SyntaxGroup) -> Self::Green;
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self;
fn as_syntax_node(&self) -> SyntaxNode;
fn stable_ptr(&self) -> Self::StablePtr;
}
Expand description
Trait for the typed view of the syntax tree. All the internal node implementations are under the ast module.
Required Associated Types§
Required Associated Constants§
sourceconst OPTIONAL_KIND: Option<SyntaxKind>
const OPTIONAL_KIND: Option<SyntaxKind>
The relevant SyntaxKind. None for enums.
Required Methods§
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
Object Safety§
This trait is not object safe.