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§impl<'a> PartialOrd for SelectWindow<'a>
impl<'a> PartialOrd for SelectWindow<'a>
impl<'a> Eq for SelectWindow<'a>
impl<'a> StructuralPartialEq for SelectWindow<'a>
Auto Trait Implementations§
impl<'a> Freeze for SelectWindow<'a>
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