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

SparseValues.first

The value at the lowest index, which is what a write without one sets.

Source and package
Qualified name
libtmux::hooks::SparseValues::first
Module
hooks
Declared in
SparseValues
Package
libtmux
Source
crates/libtmux/src/hooks.rs
impl<T> SparseValues<T> #[must_use] pub fn first(&self) -> Option<&T>

Description#

The lowest index rather than index 0, because a set whose slot 0 was removed still has a first value.

Type parameters
Esc

Type to search.

Reference previewOpen reference