pub trait QueryRef {
    // Required methods
    fn query_ref(&self, ident: &Ident) -> Option<Expr>;
    fn query_lhs(&self, ident: &Ident) -> Option<Expr>;
    fn should_fix_this(&self, ident: &Ident) -> bool;
}

Required Methods§

source

fn query_ref(&self, ident: &Ident) -> Option<Expr>

source

fn query_lhs(&self, ident: &Ident) -> Option<Expr>

source

fn should_fix_this(&self, ident: &Ident) -> bool

when foo() is replaced with bar.baz(), should bar.baz be indirect call?

Implementors§