# formats.text.TmuxText.as_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#L57
- **Page:** https://libtmux.org/en/rs/latest/reference/formats-text-tmuxtext-as_bytes/

```
formats.text.TmuxText.as_bytes(self) -> &[u8]
```

Return the exact stored bytes.

## Example

```rust
use libtmux::TmuxText;

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