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

options.OptionSchema.range

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

View as Markdown

Module
options
Declared in
OptionSchema
Package
libtmux
Source
crates/libtmux/src/options.rs
range ( self ) → Option<RangeInclusive<i64>>
method [source]
method [source]
range

Return the inclusive range a OptionKind::Number option accepts.

None for every other kind.

Examples

use libtmux::option_schema;
let limit = option_schema("buffer-limit").expect("a documented option");
assert_eq!(limit.range(), Some(1..=i64::from(i32::MAX)));
let keys = option_schema("mode-keys").expect("a documented option");
assert_eq!(keys.range(), None);

0 declared, 0 inherited

Esc

Type to search.