pub trait ExprExt: Into<Expr> {
// Provided methods
fn call(self, parameters: impl Into<Vec<Expr>>) -> Expr { ... }
fn index(self, index: impl Into<Expr>) -> Expr { ... }
fn cast(self, type_expr: impl IntoPTypeExpr) -> Expr { ... }
fn dot(self, field: impl Into<String>) -> Expr { ... }
fn arrow(self, field: impl Into<String>) -> Expr { ... }
fn inc(self) -> Expr { ... }
fn dec(self) -> Expr { ... }
}
Provided Methods§
fn call(self, parameters: impl Into<Vec<Expr>>) -> Expr
fn index(self, index: impl Into<Expr>) -> Expr
fn cast(self, type_expr: impl IntoPTypeExpr) -> Expr
fn dot(self, field: impl Into<String>) -> Expr
fn arrow(self, field: impl Into<String>) -> Expr
fn inc(self) -> Expr
fn dec(self) -> Expr
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.