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

snapshot.Availability.available

Rust
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
snapshot
Declared in
Availability
Package
libtmux
Source
crates/libtmux/src/snapshot.rs
available ( self ) → Option<T>
method [source]
method [source]
available

Return the value, discarding the reason when there is none.

Examples

use libtmux::Availability;
assert_eq!(Availability::Available(7_u32).available(), Some(7));
assert_eq!(Availability::<u32>::Unsupported.available(), None);

0 declared, 0 inherited

Esc

Type to search.