options.OptionKind
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- options
- Package
- libtmux
- Source
- crates/libtmux/src/options.rs
-
What kind of value an option holds.
Examples
use libtmux::{OptionKind, option_schema};// `mouse` is a real flag: on or off.assert_eq!(option_schema("mouse").map(OptionSchema::kind), Some(OptionKind::Flag));// `status` looks like one and is not: it also accepts a count of status// lines, so reading it as a boolean discards those values.assert_eq!(option_schema("status").map(OptionSchema::kind), Some(OptionKind::Choice));
7 declared, 0 inherited