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.

Rust API

constant libtmux-rs latest

Error.AmbiguousLayout

A saved layout value is a preset prefix that names more than one preset on the running tmux release.

Source and package
Qualified name
libtmux::error::Error::AmbiguousLayout
Module
error
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error.rs
AmbiguousLayout { input: String, candidates: Vec<&'static str>, }

Description#

tmux's own layout_set_lookup accepts a unique prefix (tile and even-h both apply cleanly on every supported release), so refusing every prefix would reject values tmux itself understands. An ambiguous one is refused before dispatch instead of leaving tmux to pick one silently. The candidates are only the presets available on the running release: main-h is unique on tmux 3.2a and ambiguous from 3.5, where the mirrored pair exists.

Fields2#

AmbiguousLayout fields
NameTypeDescription
input String The value the caller passed.
candidates Vec<&'static str> The preset names it could mean.
Esc

Type to search.

Reference previewOpen reference