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

ReleaseSuffix.patch

Construct a lowercase patch-letter suffix.

Source and package
Qualified name
libtmux::version::ReleaseSuffix::patch
Module
version
Declared in
ReleaseSuffix
Package
libtmux
Source
crates/libtmux/src/version.rs
#[must_use] pub fn patch(letter: char) -> Option<Self>

Description

Returns None when letter is not an ASCII lowercase letter.

Parameters

Examples

use libtmux::ReleaseSuffix;
let suffix = ReleaseSuffix::patch('b').expect("b is a patch letter");
assert_eq!(suffix.patch_letter(), Some('b'));
assert_eq!(ReleaseSuffix::patch('B'), None);

Same owner

containment 1 of 8 shown

Other members of version.ReleaseSuffix whose names share patch. They sit on the same type; that does not make them behave alike.

All 8 members of ReleaseSuffix

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 version.ReleaseSuffix.patch.

Esc
Search in

Type to search.

Reference previewOpen reference