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

query.fields.TextField

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

View as Markdown

Module
query.fields
Package
libtmux
Source
crates/libtmux/src/query/fields.rs
struct query.fields.TextField
structoverload [source]
structoverload [source]
struct query.fields.TextField

A typed handle for a portable text field on T.

All operators require strict UTF-8 in the candidate and return false for invalid bytes before any outer logical negation. Rust membership authoring accepts any IntoIterator; the version 1 wire representation uses an array. A scalar string is not substring membership: use TextField::contains for that operation.

V is the type a snapshot reads the field as: TmuxText unless the field is a typed ID such as crate::PaneId. Filtering matches the text either way.

Examples

use libtmux::query::TextField;
use libtmux::query::__private;
struct Row;
let field: TextField<Row> = __private::text_field("row", "name");
let _ = field.contains("build");

12 declared, 0 inherited

Members

  • contains method Test exact substring containment.
  • contains_ignore_case method Test folded substring containment without normalization.
  • ends_with method Test an exact string suffix.
  • ends_with_ignore_case method Test a folded string suffix without normalization.
  • eq method Compare a candidate with one exact string.
  • eq_ignore_case method Compare using Unicode default case folding without normalization.
  • is_in method Test exact membership in ordered string values.
  • not_in method Test exact exclusion from ordered string values.
  • regex method Compile and match a case-sensitive Rust regular expression.
  • regex_ignore_case method Compile and match a Unicode case-insensitive Rust regular expression.
  • starts_with method Test an exact string prefix.
  • starts_with_ignore_case method Test a folded string prefix without normalization.
Esc

Type to search.