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.accepts

Report whether tmux will place a write of this option at scope.

Source and package
Qualified name
libtmux::options::OptionSchema::accepts
Module
options
Declared in
OptionSchema
Package
libtmux
Source
crates/libtmux/src/options.rs
#[must_use] pub fn accepts(&self, scope: OptionScope) -> bool

Description#

tmux resolves an option by name rather than by the flags it was sent with, so a write it does not accept here is not refused: it lands at whichever table the name belongs to, and reports success for doing it.

Parameters
Esc

Type to search.

Reference previewOpen reference