fn has_no_input_arg(&self, method: &AssociatedItem) -> bool {
        match method.def() {
            Def::Method(def_id) => {
                match self.tcx.type_of(def_id).sty {
                    ty::TypeVariants::TyFnDef(_, _, sig) => {
                        sig.inputs().skip_binder().len() == 1
                    }
                    _ => false,
                }
            }
            _ => false,
        }
    }
// This function checks if the method isn't static and takes other arguments than `self`.
This function checks if the method isn't static and takes other arguments than `self`.
This function checks if the method isn ' t static and takes other arguments than ` self ` .
fn has_no_input_arg(&self, method: &AssociatedItem) -> bool {
        match method.def() {
            Def::Method(def_id) => {
                match self.tcx.type_of(def_id).sty {
                    ty::TypeVariants::TyFnDef(_, _, sig) => {
                        sig.inputs().skip_binder().len() == 1
                    }
                    _ => false,
                }
            }
            _ => false,
        }
    }
fn has_no_input_arg ( & self , method : & AssociatedItem ) -> bool { match method . def ( ) { Def :: Method ( def_id ) => { match self . tcx . type_of ( def_id ) . sty { ty :: TypeVariants :: TyFnDef ( _ , _ , sig ) => { sig . inputs ( ) . skip_binder ( ) . len ( ) == 1 } _ => false , } } _ => false , } }
This function checks if the method isn't static and takes other arguments than `self`.
This function checks if the method isn ' t static and takes other arguments than ` self ` .
&self
method
&AssociatedItem
&self
method
&AssociatedItem