# query.private.Predicate.matches_bool

- **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#L230
- **Page:** https://libtmux.org/en/rs/latest/reference/query-private-predicate-matches_bool/

```
query.private.Predicate.matches_bool(self, candidate: bool) -> bool
```

Match a boolean candidate with this boolean predicate.

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