# formats.text.TmuxText.from_bytes

- **Module:** formats.text.TmuxText
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/formats/text.rs#L38
- **Page:** https://libtmux.org/reference/rs/formats-text-tmuxtext-from_bytes/

```
formats.text.TmuxText.from_bytes(bytes: impl Into<Vec<u8>>) -> Self
```

Construct a value without validating or changing its bytes.

## Example

```rust
use libtmux::TmuxText;

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