pub fn types(&self) -> Vec<&P<Ty>> {
        match *self {
            PathParameters::AngleBracketed(ref data) => {
                data.types.iter().collect()
            }
            PathParameters::Parenthesized(ref data) => {
                data.inputs.iter()
                    .chain(data.output.iter())
                    .collect()
            }
        }
    }
/// Returns the types that the user wrote. Note that these do not necessarily map to the type
/// parameters in the parenthesized case.
Returns the types that the user wrote. Note that these do not necessarily map to the type
parameters in the parenthesized case.
Returns the types that the user wrote . Note that these do not necessarily map to the type parameters in the parenthesized case .
pub fn types(&self) -> Vec<&P<Ty>> {
        match *self {
            PathParameters::AngleBracketed(ref data) => {
                data.types.iter().collect()
            }
            PathParameters::Parenthesized(ref data) => {
                data.inputs.iter()
                    .chain(data.output.iter())
                    .collect()
            }
        }
    }
pub fn types ( & self ) -> Vec < & P < Ty > > { match * self { PathParameters :: AngleBracketed ( ref data ) => { data . types . iter ( ) . collect ( ) } PathParameters :: Parenthesized ( ref data ) => { data . inputs . iter ( ) . chain ( data . output . iter ( ) ) . collect ( ) } } }
Returns the types that the user wrote.
Returns the types that the user wrote .
&self
&self