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

CommandChain.command_count

Return the number of commands in the chain, always at least one.

Source and package
Qualified name
libtmux::command::CommandChain::command_count
Module
command
Declared in
CommandChain
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use] pub fn command_count(&self) -> usize

Examples#

use libtmux::{Command, CommandChain};
let chain = CommandChain::new(Command::new("list-panes"));
assert_eq!(chain.command_count(), 1);
Esc

Type to search.

Reference previewOpen reference