# query.fields.EnumField.not_in

- **Module:** query.fields.EnumField
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/query/fields.rs#L887
- **Page:** https://libtmux.org/en/rs/latest/reference/query-fields-enumfield-not_in/

```
query.fields.EnumField.not_in(self, values: impl IntoIterator<Item = E>) -> FilterExpr<T>
```

Test exclusion using custom enum values' stable filter names.

## Example

```rust
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]);
```
