Skip to main content

ExtensionExpr

Trait ExtensionExpr 

Source
pub trait ExtensionExpr:
    Debug
    + Send
    + Sync {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn name(&self) -> &str;
    fn value_type(&self) -> ValueType;
    fn children(&self) -> &mut [Expr];
}
Expand description

The interface for extending the AST with custom expression node.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn name(&self) -> &str

Source

fn value_type(&self) -> ValueType

Source

fn children(&self) -> &mut [Expr]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§