/// Converts the state ident to an expression that can be used as an argument to functions
Converts the state ident to an expression that can be used as an argument to functions
Converts the state ident to an expression that can be used as an argument to functions
fn var_as_expr(&self) -> Expr {
        let var = self.var();
        let segment = PathSegment {
            ident: var,
            arguments: PathArguments::None,
        };
        let path = Path::from(segment);
        let expr_path = ExprPath {
            attrs: Vec::new(),
            qself: None,
            path,
        };
        let expr = Expr::from(expr_path);
        expr
    }
fn var_as_expr ( & self ) -> Expr { let var = self . var ( ) ; let segment = PathSegment { ident : var , arguments : PathArguments :: None , } ; let path = Path :: from ( segment ) ; let expr_path = ExprPath { attrs : Vec :: new ( ) , qself : None , path , } ; let expr = Expr :: from ( expr_path ) ; expr }
Converts the state ident to an expression that can be used as an argument to functions
Converts the state ident to an expression that can be used as an argument to functions
&self