Struct tmux_interface::commands::windows_and_panes::swap_pane::SwapPane[][src]

pub struct SwapPane<'a>(pub TmuxCommand<'a>);

Swap two panes

Manual

tmux ^3.1:

tmux swap-pane [-dDUZ] [-s src-pane] [-t dst-pane]
(alias: swapp)

tmux ^1.0:

tmux swap-pane [-dDU] [-s src-pane] [-t dst-pane]
(alias: swapp)

tmux ^0.8:

tmux swap-pane [-dDU] [-p src-index] [-t target-window] [-q dst-index]
(alias: swapp)

Implementations

impl<'a> SwapPane<'a>[src]

pub fn new() -> Self[src]

pub fn detached(&mut self) -> &mut Self[src]

[-d] - instruct tmux not to change the active pane

pub fn previous_pane(&mut self) -> &mut Self[src]

[-D] - swap with the next pane

pub fn next_pane(&mut self) -> &mut Self[src]

[-U] - swap with the previous pane

pub fn src_pane<S: Into<Cow<'a, str>>>(&mut self, src_pane: S) -> &mut Self[src]

[-s src-pane] - src-pane

pub fn dst_pane<S: Into<Cow<'a, str>>>(&mut self, dst_pane: S) -> &mut Self[src]

[-t dst-pane] - dst-pane

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for SwapPane<'a>[src]

impl<'a> Debug for SwapPane<'a>[src]

impl<'a> Default for SwapPane<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for SwapPane<'a>[src]

impl<'a> From<TmuxCommand<'a>> for SwapPane<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SwapPane<'a>

impl<'a> Send for SwapPane<'a>

impl<'a> Sync for SwapPane<'a>

impl<'a> Unpin for SwapPane<'a>

impl<'a> UnwindSafe for SwapPane<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.