pub struct SelectWindow<'a> {
pub last: bool,
pub next: bool,
pub previous: bool,
pub switch: bool,
pub target_window: Option<Cow<'a, str>>,
}
Expand description
Select the window at target-window.
§Manual
tmux ^1.8:
select-window [-lnpT] [-t target-window]
(alias: selectw)
tmux ^1.5:
select-window [-lnp] [-t target-window]
(alias: selectw)
tmux ^0.8:
select-window [-t target-window]
(alias: selectw)
Fields§
§last: bool
[-l]
- equivalent to last-window
next: bool
[-n]
- equivalent to next-window
previous: bool
[-p]
- equivalent to previous-window
switch: bool
[-T]
- if the selected window is already the current window, behave like last-window
target_window: Option<Cow<'a, str>>
[-t target-window]
- target-window
Implementations§
source§impl<'a> SelectWindow<'a>
impl<'a> SelectWindow<'a>
pub fn new() -> Self
sourcepub fn switch(self) -> Self
pub fn switch(self) -> Self
[-T]
- if the selected window is already the current window, behave like last-window
sourcepub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
pub fn target_window<S: Into<Cow<'a, str>>>(self, target_window: S) -> Self
[-t target-window]
- target-window
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for SelectWindow<'a>
impl<'a> Clone for SelectWindow<'a>
source§fn clone(&self) -> SelectWindow<'a>
fn clone(&self) -> SelectWindow<'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 SelectWindow<'a>
impl<'a> Debug for SelectWindow<'a>
source§impl<'a> Default for SelectWindow<'a>
impl<'a> Default for SelectWindow<'a>
source§fn default() -> SelectWindow<'a>
fn default() -> SelectWindow<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<SelectWindow<'a>> for TmuxCommand<'a>
impl<'a> From<SelectWindow<'a>> for TmuxCommand<'a>
source§fn from(item: SelectWindow<'a>) -> Self
fn from(item: SelectWindow<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for SelectWindow<'a>
impl<'a> Hash for SelectWindow<'a>
source§impl<'a> Ord for SelectWindow<'a>
impl<'a> Ord for SelectWindow<'a>
source§fn cmp(&self, other: &SelectWindow<'a>) -> Ordering
fn cmp(&self, other: &SelectWindow<'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 SelectWindow<'a>
impl<'a> PartialEq for SelectWindow<'a>
source§fn eq(&self, other: &SelectWindow<'a>) -> bool
fn eq(&self, other: &SelectWindow<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for SelectWindow<'a>
impl<'a> PartialOrd for SelectWindow<'a>
source§fn partial_cmp(&self, other: &SelectWindow<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SelectWindow<'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 SelectWindow<'a>
impl<'a> StructuralPartialEq for SelectWindow<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SelectWindow<'a>
impl<'a> Send for SelectWindow<'a>
impl<'a> Sync for SelectWindow<'a>
impl<'a> Unpin for SelectWindow<'a>
impl<'a> UnwindSafe for SelectWindow<'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