Trait ExprExt

Source
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§

Source

fn call(self, parameters: impl Into<Vec<Expr>>) -> Expr

Source

fn index(self, index: impl Into<Expr>) -> Expr

Source

fn cast(self, type_expr: impl IntoPTypeExpr) -> Expr

Source

fn dot(self, field: impl Into<String>) -> Expr

Source

fn arrow(self, field: impl Into<String>) -> Expr

Source

fn inc(self) -> Expr

Source

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.

Implementors§

Source§

impl<T: Into<Expr>> ExprExt for T