# pane.Pane.resize

- **Module:** pane.Pane
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/pane.rs#L635
- **Page:** https://libtmux.org/reference/rs/pane-pane-resize/

```
pane.Pane.resize(mut, width: u32, height: u32) -> Result<&mut Self, Error>
```

Resize the pane to an exact size in cells.

# Errors

Returns an error when tmux refuses the size.
