Struct tmux_interface::commands::windows_and_panes::link_window::LinkWindow
source · pub struct LinkWindow<'a> {
pub add: bool,
pub detached: bool,
pub kill: bool,
pub src_window: Option<Cow<'a, str>>,
pub dst_window: Option<Cow<'a, str>>,
}
Expand description
Link the window at src-window to the specified dst-window
§Manual
tmux ^2.1:
link-window [-adk] [-s src-window] [-t dst-window]
(alias: linkw)
tmux ^0.8:
link-window [-dk] [-s src-window] [-t dst-window]
(alias: linkw)
Fields§
§add: bool
[-a]
- the window is moved to the next index up
detached: bool
[-d]
- the newly linked window is not selected
kill: bool
[-k]
- if dst-window exists, it is killed, otherwise an error is generated
src_window: Option<Cow<'a, str>>
[-s src-window]
- src-window
dst_window: Option<Cow<'a, str>>
[-t dst-window]
- dst-window
Implementations§
source§impl<'a> LinkWindow<'a>
impl<'a> LinkWindow<'a>
pub fn new() -> Self
sourcepub fn kill(self) -> Self
pub fn kill(self) -> Self
[-k]
- if dst-window exists, it is killed, otherwise an error is generated
sourcepub fn src_window<S: Into<Cow<'a, str>>>(self, src_window: S) -> Self
pub fn src_window<S: Into<Cow<'a, str>>>(self, src_window: S) -> Self
[-s src-window]
- src-window
sourcepub fn dst_window<S: Into<Cow<'a, str>>>(self, dst_window: S) -> Self
pub fn dst_window<S: Into<Cow<'a, str>>>(self, dst_window: S) -> Self
[-t dst-window]
- dst-window
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for LinkWindow<'a>
impl<'a> Clone for LinkWindow<'a>
source§fn clone(&self) -> LinkWindow<'a>
fn clone(&self) -> LinkWindow<'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 LinkWindow<'a>
impl<'a> Debug for LinkWindow<'a>
source§impl<'a> Default for LinkWindow<'a>
impl<'a> Default for LinkWindow<'a>
source§fn default() -> LinkWindow<'a>
fn default() -> LinkWindow<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<LinkWindow<'a>> for TmuxCommand<'a>
impl<'a> From<LinkWindow<'a>> for TmuxCommand<'a>
source§fn from(item: LinkWindow<'a>) -> Self
fn from(item: LinkWindow<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for LinkWindow<'a>
impl<'a> Hash for LinkWindow<'a>
source§impl<'a> Ord for LinkWindow<'a>
impl<'a> Ord for LinkWindow<'a>
source§fn cmp(&self, other: &LinkWindow<'a>) -> Ordering
fn cmp(&self, other: &LinkWindow<'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 LinkWindow<'a>
impl<'a> PartialEq for LinkWindow<'a>
source§fn eq(&self, other: &LinkWindow<'a>) -> bool
fn eq(&self, other: &LinkWindow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for LinkWindow<'a>
impl<'a> PartialOrd for LinkWindow<'a>
source§fn partial_cmp(&self, other: &LinkWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &LinkWindow<'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 LinkWindow<'a>
impl<'a> StructuralPartialEq for LinkWindow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LinkWindow<'a>
impl<'a> Send for LinkWindow<'a>
impl<'a> Sync for LinkWindow<'a>
impl<'a> Unpin for LinkWindow<'a>
impl<'a> UnwindSafe for LinkWindow<'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