# window.assignment

- **Module:** window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window.rs#L1746
- **Page:** https://libtmux.org/reference/rs/window-assignment/

```
window.assignment(name: &OsStr, value: &OsStr) -> OsString
```

Render one `NAME=VALUE` pair for tmux's `-e` flag.

Built from bytes because tmux accepts environment values that are not
valid UTF-8, and rejecting them here would be stricter than tmux is.
