Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

struct libtmux-rs latest

WindowId

A native tmux window ID such as @1.

Source and package
Qualified name
target.WindowId
Module
target
Package
libtmux
Source
crates/libtmux/src/target.rs
struct target.WindowId

Description#

Leading zeroes are accepted but canonicalized to the numeric tmux ID.

Examples#

use libtmux::WindowId;
let id: WindowId = "@10".parse()?;
assert_eq!(id.to_string(), "@10");
Esc

Type to search.

Reference preview Open reference