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

snapshot.Availability.as_ref

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
as_ref ( self ) → Availability<&T>
method [source]
method [source]
as_ref

Borrow the value, keeping the reason when there is none.

Examples

use libtmux::{Availability, TmuxText};
let owned = Availability::Available(TmuxText::from("copy-mode"));
assert_eq!(owned.as_ref().available(), Some(&TmuxText::from("copy-mode")));

0 declared, 0 inherited

Esc

Type to search.