options.OptionSchema.choices
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- options
- Declared in
- OptionSchema
- Package
- libtmux
- Source
- crates/libtmux/src/options.rs
-
Return the words a
OptionKind::Choiceoption accepts, in tmux's order.Empty for every other kind. tmux compares a choice exactly, so case matters.
Examples
use libtmux::option_schema;let keys = option_schema("mode-keys").expect("a documented option");assert_eq!(keys.choices(), ["emacs", "vi"]);let limit = option_schema("history-limit").expect("a documented option");assert!(limit.choices().is_empty());
0 declared, 0 inherited