Predicate.validate_one
Validate this predicate as a to-one relation over U.
Source and package
- Qualified name
-
libtmux::query:: private:: Predicate:: validate _one - Module
- query.private
- Declared in
Predicate- Package
- libtmux
- Source
- crates/libtmux/src/query/private.rs
- pub fn validate_one<U: Filterable>(&self) -> Result< (), Filter
Expression >Error -
- Errors
- Returns
FilterExpressionErrorKind::UnknownOperatorfor a scalar predicate,FilterExpressionErrorKind::UnknownQuantifierfor a to-many quantifier, or the exact source-less nested schema error.doc comment · private.rs:602
Description
Validation walks every nested logical branch and delegates each leaf to
U's generated schema implementation.Errors
Returns
FilterExpressionErrorKind::UnknownOperatorfor a scalar predicate,FilterExpressionErrorKind::UnknownQuantifierfor a to-many quantifier, or the exact source-less nested schema error.The
crate::query::Filterablerelation example executes this method in a hand-written generated-code expansion.- Type parameters
-
-
Bound Filterable
-
Recorded calls
source callsThe 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_one.