# query.private.Predicate.matches_enum

- **Module:** query.private.Predicate
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/query/private.rs#L278
- **Page:** https://libtmux.org/en/rs/latest/reference/query-private-predicate-matches_enum/

```
query.private.Predicate.matches_enum(self, candidate: &str) -> bool
```

Match a custom enum candidate's stable filter string.

The [`crate::query::Filterable`] example executes this method in a
hand-written generated-code expansion.
