# formats.text.TmuxText.from_bytes

- **Module:** formats.text.TmuxText
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/formats/text.rs#L40
- **Page:** https://libtmux.org/en/rs/latest/reference/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]);
```
