; Rust pattern detection queries
; Captures: @node (pattern site), @name (identifier)

; impl Trait for Type (trait implementation)
(impl_item
  trait: (type_identifier) @name) @node

; Derive macro attribute
(attribute_item
  (attribute
    (identifier) @name
    (#eq? @name "derive"))) @node

; Test attribute
(attribute_item
  (attribute
    (identifier) @name
    (#eq? @name "test"))) @node
