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

OptionSchema.range

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

Source and package
Qualified name
libtmux::options::OptionSchema::range
Module
options
Declared in
OptionSchema
Package
libtmux
Source
crates/libtmux/src/options.rs
#[must_use] pub fn range(&self) -> Option<RangeInclusive<i64>>

Description#

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);
Esc

Type to search.

Reference previewOpen reference