pub struct MovePane<'a> {
pub left_above: bool,
pub detached: bool,
pub horizontal: bool,
pub vertical: bool,
pub size: Option<&'a PaneSize>,
pub src_pane: Option<Cow<'a, str>>,
pub dst_pane: Option<Cow<'a, str>>,
}Expand description
Like join-pane, but src-pane and dst-pane may belong to the same window
§Manual
tmux ^3.1:
move-pane [-bdhv] [-l size] [-s src-pane] [-t dst-pane]
(alias: movep)tmux ^1.7:
move-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
(alias: movep)Fields§
§left_above: bool[-b] - cause src-pane to be joined to left of or above dst-pane
detached: bool[-d] -
horizontal: bool[-h] - full height
vertical: bool[-v] - full width
size: Option<&'a PaneSize>[-l size] - specify the size of the new pane in lines/columns
src_pane: Option<Cow<'a, str>>[-s src-pane] - src-pane
dst_pane: Option<Cow<'a, str>>[-t dst-pane] - dst-pane
Implementations§
Source§impl<'a> MovePane<'a>
impl<'a> MovePane<'a>
pub fn new() -> Self
Sourcepub fn left_above(self) -> Self
pub fn left_above(self) -> Self
[-b] - cause src-pane to be joined to left of or above dst-pane
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
[-h] - full height
Sourcepub fn size(self, size: &'a PaneSize) -> Self
pub fn size(self, size: &'a PaneSize) -> Self
[-l size] - specify the size of the new pane in lines/columns
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
Source§impl<'a> From<MovePane<'a>> for TmuxCommand<'a>
Available on crate feature tmux_1_7 only.
impl<'a> From<MovePane<'a>> for TmuxCommand<'a>
Available on crate feature
tmux_1_7 only.Source§impl<'a> Ord for MovePane<'a>
impl<'a> Ord for MovePane<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for MovePane<'a>
impl<'a> PartialOrd for MovePane<'a>
impl<'a> Eq for MovePane<'a>
impl<'a> StructuralPartialEq for MovePane<'a>
Auto Trait Implementations§
impl<'a> Freeze for MovePane<'a>
impl<'a> RefUnwindSafe for MovePane<'a>
impl<'a> Send for MovePane<'a>
impl<'a> Sync for MovePane<'a>
impl<'a> Unpin for MovePane<'a>
impl<'a> UnwindSafe for MovePane<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more