Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

query.QueryIteratorExt

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
query
Package
libtmux
Source
crates/libtmux/src/query.rs
trait query.QueryIteratorExt
trait [source]
trait [source]
trait query.QueryIteratorExt

Cardinality and named-predicate operations for native iterators.

Self::matching borrows candidates from a borrowed iterator; Self::matching_owned moves each selected item from its iterator. Cardinality methods preserve the iterator's item type in either case.

Examples

use libtmux::query::QueryIteratorExt;
let values = [1, 2, 3];
assert_eq!(values.iter().exactly_one(), Err(libtmux::query::ExactlyOneError::MultipleItems));

0 declared, 0 inherited

Esc

Type to search.