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.

MoreLess about this notice

method libtmux-rs

CommandSummary.public_argument_count

Return the number of public logical arguments.

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

Examples

use libtmux::Command;
let summary = Command::new("set-option").arg("mouse").summary();
assert_eq!(summary.public_argument_count(), 1);

Recorded calls

source calls
No call edges in the Rust model.

The Rust reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls command.CommandSummary.public_argument_count.

Esc
Search in

Type to search.

Reference previewOpen reference