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

Matcher.matches

Return whether candidate matches this predicate.

Source and package
Qualified name
libtmux::query::Matcher::matches
Module
query
Declared in
Matcher
Package
libtmux
Source
crates/libtmux/src/query.rs
pub trait Matcher<T> fn matches(&self, candidate: &T) -> bool;
Type parameters
Parameters

Examples

use libtmux::query::Matcher;
let is_positive = |candidate: &i32| *candidate > 0;
assert!(is_positive.matches(&1));
assert!(!is_positive.matches(&-1));

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.Matcher.matches.

Esc
Search in

Type to search.

Reference previewOpen reference