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

formats.text.TmuxText.from_bytes

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

View as Markdown

Module
formats.text
Declared in
TmuxText
Package
libtmux
Source
crates/libtmux/src/formats/text.rs
from_bytes ( bytes : impl Into<Vec<u8>> ) → Self
method [source]
method [source]
from_bytes

Construct a value without validating or changing its bytes.

Examples

use libtmux::TmuxText;
let text = TmuxText::from_bytes(vec![0, 0xff]);
assert_eq!(text.as_bytes(), [0, 0xff]);

0 declared, 0 inherited

Esc

Type to search.