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.

method libtmux-rs latest

EnumField.not_in

Test exclusion using custom enum values' stable filter names.

Source and package
Qualified name
libtmux::query::fields::EnumField::not_in
Module
query.fields
Declared in
EnumField
Package
libtmux
Source
crates/libtmux/src/query/fields.rs
impl<T, E: FilterEnum> EnumField<T, E> #[must_use] pub fn not_in( self, values: impl IntoIterator<Item = E> ) -> FilterExpr<T>

Examples#

use libtmux::query::{EnumField, FilterEnum};
use libtmux::query::__private;
enum State { Ready }
impl FilterEnum for State {
const FILTER_VARIANTS: &'static [&'static str] = &["ready"];
fn filter_name(&self) -> &'static str { "ready" }
}
struct Row;
let field: EnumField<Row, State> = __private::enum_field("row", "state");
let _ = field.not_in([State::Ready]);
Type parameters
Parameters
Esc

Type to search.

Reference previewOpen reference