fn is_associated_function(signature: &Signature) -> bool {
    fn is_receiver(arg: &FnArg) -> bool {
        matches!(arg, FnArg::Receiver(_))
    }

    signature.inputs.iter().any(is_receiver)
}
/// Returns true if this signature represents an associated function
Returns true if this signature represents an associated function
Returns true if this signature represents an associated function
fn is_associated_function(signature: &Signature) -> bool {
    fn is_receiver(arg: &FnArg) -> bool {
        matches!(arg, FnArg::Receiver(_))
    }
    signature.inputs.iter().any(is_receiver)
}
fn is_associated_function ( signature : & Signature ) -> bool { fn is_receiver ( arg : & FnArg ) -> bool { matches ! ( arg FnArg Receiver ( ) ) } signature . inputs . iter ( ) . any ( is_receiver ) }
Returns true if this signature represents an associated function
Returns true if this signature represents an associated function
signature
&Signature