Struct tmux_interface::commands::windows_and_panes::swap_pane::SwapPane [−][src]
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]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for SwapPane<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,