Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-rs

Predicate.validate_integer

Validate this predicate for one fixed-width integer kind.

Source and package
Qualified name
libtmux::query::private::Predicate::validate_integer
Module
query.private
Declared in
Predicate
Package
libtmux
Source
crates/libtmux/src/query/private.rs
#[allow(clippy::needless_pass_by_value)] pub fn validate_integer(&self, kind: IntegerKind) -> Result< (), FilterExpressionError >

Description

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.

Parameters

Recorded calls

source calls
No call edges in the Rust model.

The Rust reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls query.private.Predicate.validate_integer.

Esc
Search in

Type to search.

Reference previewOpen reference