# options.OptionSchema.range

- **Module:** options.OptionSchema
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/options.rs#L203
- **Page:** https://libtmux.org/en/rs/latest/reference/options-optionschema-range/

```
options.OptionSchema.range(self) -> Option<RangeInclusive<i64>>
```

Return the inclusive range a [`OptionKind::Number`] option accepts.

`None` for every other kind.

## Example

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