Matcher.matches
Return whether candidate matches this predicate.
Source and package
- Qualified name
-
query.Matcher .matches - Module
- query
- Declared in
- Matcher
- Package
- libtmux
- Source
- crates/libtmux/src/query.rs
-
Examples#
use libtmux::query::Matcher;let is_positive = |candidate: &i32| *candidate > 0;assert!(is_positive.matches(&1));assert!(!is_positive.matches(&-1));