Skip to main content

IMPL_TRAIT_QUERY

Constant IMPL_TRAIT_QUERY 

Source
pub const IMPL_TRAIT_QUERY: &str = r"
(impl_item
  trait: (type_identifier) @trait_name
  type: (type_identifier) @impl_type)
";
Expand description

Tree-sitter query for extracting impl Trait for Type blocks. Captures the trait name and the concrete implementor type.