[−][src]Function syntax_ext::deriving::generic::find_type_parameters
fn find_type_parameters(
ty: &Ty,
ty_param_names: &[Name],
span: Span,
cx: &ExtCtxt
) -> Vec<P<Ty>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
This method helps to extract all the type parameters referenced from a
type. For a type parameter <T>
, it looks for either a TyPath
that
is not global and starts with T
, or a TyQPath
.