Trait ruast::MethodCallable

source ·
pub trait MethodCallable {
    // Required method
    fn method_call(
        self,
        seg: impl Into<PathSegment>,
        args: Vec<Expr>
    ) -> MethodCall;

    // Provided methods
    fn method_call1(
        self,
        seg: impl Into<PathSegment>,
        arg: impl Into<Expr>
    ) -> MethodCall
       where Self: Sized { ... }
    fn method_call2(
        self,
        seg: impl Into<PathSegment>,
        arg1: impl Into<Expr>,
        arg2: impl Into<Expr>
    ) -> MethodCall
       where Self: Sized { ... }
}

Required Methods§

source

fn method_call(self, seg: impl Into<PathSegment>, args: Vec<Expr>) -> MethodCall

Provided Methods§

source

fn method_call1( self, seg: impl Into<PathSegment>, arg: impl Into<Expr> ) -> MethodCallwhere Self: Sized,

source

fn method_call2( self, seg: impl Into<PathSegment>, arg1: impl Into<Expr>, arg2: impl Into<Expr> ) -> MethodCallwhere Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§