# query.private.Predicate.validate_integer

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

```
query.private.Predicate.validate_integer(self, kind: IntegerKind) -> Result<(), FilterExpressionError>
```

Validate this predicate for one fixed-width integer kind.

# Errors

Returns [`FilterExpressionErrorKind::UnknownOperator`] for a
non-integer family, [`FilterExpressionErrorKind::InvalidStructure`]
for an invalid equality shape, or
[`FilterExpressionErrorKind::InvalidLiteral`] for signedness or
range mismatches.

The [`crate::query::Filterable`] example executes this method for
both signed and unsigned fields in a hand-written expansion.
