Struct tmux_interface::commands::windows_and_panes::swap_window::SwapWindow
source · pub struct SwapWindow<'a> {
pub detached: bool,
pub src_window: Option<Cow<'a, str>>,
pub dst_window: Option<Cow<'a, str>>,
}
Expand description
This is similar to link-window, except the source and destination windows are swapped
§Manual
tmux ^0.8:
swap-window [-d] [-s src-window] [-t dst-window]
(alias: swapw)
Fields§
§detached: bool
[-d]
src_window: Option<Cow<'a, str>>
[-s src-window]
dst_window: Option<Cow<'a, str>>
[-t dst-window]
Implementations§
source§impl<'a> SwapWindow<'a>
impl<'a> SwapWindow<'a>
Trait Implementations§
source§impl<'a> Clone for SwapWindow<'a>
impl<'a> Clone for SwapWindow<'a>
source§fn clone(&self) -> SwapWindow<'a>
fn clone(&self) -> SwapWindow<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for SwapWindow<'a>
impl<'a> Debug for SwapWindow<'a>
source§impl<'a> Default for SwapWindow<'a>
impl<'a> Default for SwapWindow<'a>
source§fn default() -> SwapWindow<'a>
fn default() -> SwapWindow<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<SwapWindow<'a>> for TmuxCommand<'a>
impl<'a> From<SwapWindow<'a>> for TmuxCommand<'a>
source§fn from(item: SwapWindow<'a>) -> Self
fn from(item: SwapWindow<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for SwapWindow<'a>
impl<'a> Hash for SwapWindow<'a>
source§impl<'a> Ord for SwapWindow<'a>
impl<'a> Ord for SwapWindow<'a>
source§fn cmp(&self, other: &SwapWindow<'a>) -> Ordering
fn cmp(&self, other: &SwapWindow<'a>) -> Ordering
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> PartialEq for SwapWindow<'a>
impl<'a> PartialEq for SwapWindow<'a>
source§fn eq(&self, other: &SwapWindow<'a>) -> bool
fn eq(&self, other: &SwapWindow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for SwapWindow<'a>
impl<'a> PartialOrd for SwapWindow<'a>
source§fn partial_cmp(&self, other: &SwapWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SwapWindow<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for SwapWindow<'a>
impl<'a> StructuralPartialEq for SwapWindow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SwapWindow<'a>
impl<'a> Send for SwapWindow<'a>
impl<'a> Sync for SwapWindow<'a>
impl<'a> Unpin for SwapWindow<'a>
impl<'a> UnwindSafe for SwapWindow<'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