On this page
formats.text.TmuxText.as_str
- Module
- formats.text
- Declared in
- TmuxText
- Package
- libtmux
- Source
- crates/libtmux/src/formats/text.rs
-
Borrow the stored bytes as UTF-8.
Errors
Returns
std::str::Utf8Errorwhen the stored bytes are not valid UTF-8.Examples
use libtmux::TmuxText; let text = TmuxText::from("session"); assert_eq!(text.as_str(), Ok("session"));
0 declared, 0 inherited