Predicate.validate_text
Validate that this predicate is a well-formed text predicate.
Source and package
- Qualified name
-
libtmux::query:: private:: Predicate:: validate _text - Module
- query.private
- Declared in
Predicate- Package
- libtmux
- Source
- crates/libtmux/src/query/private.rs
- pub fn validate_text(&self) -> Result< (), Filter
Expression >Error -
Description#
Errors
Returns
FilterExpressionErrorKind::UnknownOperatorfor another scalar family andFilterExpressionErrorKind::InvalidStructurefor an invalid text value or compiled-regex shape.The
crate::query::Filterableexample executes this method in a hand-written generated-code expansion.