pub fn accept_args_kwargs(attrs: &[Argument]) -> (bool, bool) {
    let (mut accept_args, mut accept_kwargs) = (false, false);

    for s in attrs {
        match s {
            Argument::VarArgs(_) => accept_args = true,
            Argument::KeywordArgs(_) => accept_kwargs = true,
            _ => continue,
        }
    }

    (accept_args, accept_kwargs)
}
/// Determine if the function gets passed a *args tuple or **kwargs dict.
Determine if the function gets passed a *args tuple or **kwargs dict.
Determine if the function gets passed a * args tuple or ** kwargs dict .
pub fn accept_args_kwargs(attrs: &[Argument]) -> (bool, bool) {
    let (mut accept_args, mut accept_kwargs) = (false, false);
    for s in attrs {
        match s {
            Argument::VarArgs(_) => accept_args = true,
            Argument::KeywordArgs(_) => accept_kwargs = true,
            _ => continue,
        }
    }
    (accept_args, accept_kwargs)
}
pub fn accept_args_kwargs ( attrs : & [ Argument ] ) -> ( bool , bool ) { let ( mut accept_args , mut accept_kwargs ) = ( false , false ) ; for s in attrs { match s { Argument :: VarArgs ( _ ) => accept_args = true , Argument :: KeywordArgs ( _ ) => accept_kwargs = true , _ => continue , } } ( accept_args , accept_kwargs ) }
Determine if the function gets passed a *args tuple or **kwargs dict.
Determine if the function gets passed a * args tuple or ** kwargs dict .
attrs
&[Argument]
attrs
&[Argument]