# query.matching.SetPredicate.has_valid_shape

- **Module:** query.matching.SetPredicate
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/query/matching.rs#L235
- **Page:** https://libtmux.org/reference/rs/query-matching-setpredicate-has_valid_shape/

```
query.matching.SetPredicate.has_valid_shape(self) -> bool
```

Report whether the operator and its operands agree.

`eq` takes one value and an ordering operator takes one bound; only
`in` and `not_in` take a set.
