pub trait Expr: Into<ExprImpl> {
// Required methods
fn return_type(&self) -> DataType;
fn try_to_expr_proto(&self) -> Result<ExprNode, String>;
// Provided methods
fn to_expr_proto(&self) -> ExprNode { ... }
fn to_expr_proto_checked_pure(
&self,
retract: bool,
context: &str,
) -> Result<ExprNode>
where Self: Clone { ... }
}Expand description
the trait of bound expressions
Required Methods§
Sourcefn return_type(&self) -> DataType
fn return_type(&self) -> DataType
Get the return type of the expr
Sourcefn try_to_expr_proto(&self) -> Result<ExprNode, String>
fn try_to_expr_proto(&self) -> Result<ExprNode, String>
Try to serialize the expression, returning an error if it’s impossible.
Provided Methods§
Sourcefn to_expr_proto(&self) -> ExprNode
fn to_expr_proto(&self) -> ExprNode
Serialize the expression. Panic if it’s impossible.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".