pub fn split(&self) -> (Option<&AstString>, Option<&AstExpr>, Option<&AstExpr>) {
        match self {
            Parameter::Normal(a, b) | Parameter::Args(a, b) | Parameter::KwArgs(a, b) => {
                (Some(a), b.as_ref().map(|x| &**x), None)
            }
            Parameter::WithDefaultValue(a, b, c) => (Some(a), b.as_ref().map(|x| &**x), Some(&**c)),
            Parameter::NoArgs => (None, None, None),
        }
    }
// Split a parameter into name, type, default value
Split a parameter into name, type, default value
Split a parameter into name type default value
pub fn split(&self) -> (Option<&AstString>, Option<&AstExpr>, Option<&AstExpr>) {
        match self {
            Parameter::Normal(a, b) | Parameter::Args(a, b) | Parameter::KwArgs(a, b) => {
                (Some(a), b.as_ref().map(|x| &**x), None)
            }
            Parameter::WithDefaultValue(a, b, c) => (Some(a), b.as_ref().map(|x| &**x), Some(&**c)),
            Parameter::NoArgs => (None, None, None),
        }
    }
pub fn split ( & self ) -> ( Option < & AstString > , Option < & AstExpr > , Option < & AstExpr > ) { match self { Parameter :: Normal ( a , b ) | Parameter :: Args ( a , b ) | Parameter :: KwArgs ( a , b ) => { ( Some ( a ) , b . as_ref ( ) . map ( | x | & * * x ) , None ) } Parameter :: WithDefaultValue ( a , b , c ) => ( Some ( a ) , b . as_ref ( ) . map ( | x | & * * x ) , Some ( & * * c ) ) , Parameter :: NoArgs => ( None , None , None ) , } }
Split a parameter into name, type, default value
Split a parameter into name type default value
&self
&self