pub struct ShowWindowOptions<'a> {
pub global: bool,
pub only_value: bool,
pub target_window: Option<Cow<'a, str>>,
pub option: Option<Cow<'a, str>>,
pub value: Option<Cow<'a, str>>,
}
Expand description
§Manual
tmux ^3.0:
(removed)
tmux ^1.8:
show-window-options [-gv] [-t target-window] [option]
(alias: showw)
tmux ^1.7:
show-window-options [-g] [-t target-window] [option]
(alias: showw)
tmux ^1.0:
show-window-options [-g] [-t target-window]
(alias: showw)
tmux ^0.8:
show-window-options [-t target-window] option value
(alias: showw)
Fields§
§global: bool
[-g]
only_value: bool
[-v]
target_window: Option<Cow<'a, str>>
[-t target-window]
option: Option<Cow<'a, str>>
option
value: Option<Cow<'a, str>>
value
Implementations§
source§impl<'a> ShowWindowOptions<'a>
impl<'a> ShowWindowOptions<'a>
pub fn new() -> Self
sourcepub fn only_value(self) -> Self
pub fn only_value(self) -> Self
[-v]
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]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for ShowWindowOptions<'a>
impl<'a> Clone for ShowWindowOptions<'a>
source§fn clone(&self) -> ShowWindowOptions<'a>
fn clone(&self) -> ShowWindowOptions<'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 ShowWindowOptions<'a>
impl<'a> Debug for ShowWindowOptions<'a>
source§impl<'a> Default for ShowWindowOptions<'a>
impl<'a> Default for ShowWindowOptions<'a>
source§fn default() -> ShowWindowOptions<'a>
fn default() -> ShowWindowOptions<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<ShowWindowOptions<'a>> for TmuxCommand<'a>
impl<'a> From<ShowWindowOptions<'a>> for TmuxCommand<'a>
source§fn from(item: ShowWindowOptions<'a>) -> Self
fn from(item: ShowWindowOptions<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for ShowWindowOptions<'a>
impl<'a> Hash for ShowWindowOptions<'a>
source§impl<'a> Ord for ShowWindowOptions<'a>
impl<'a> Ord for ShowWindowOptions<'a>
source§fn cmp(&self, other: &ShowWindowOptions<'a>) -> Ordering
fn cmp(&self, other: &ShowWindowOptions<'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 ShowWindowOptions<'a>
impl<'a> PartialEq for ShowWindowOptions<'a>
source§fn eq(&self, other: &ShowWindowOptions<'a>) -> bool
fn eq(&self, other: &ShowWindowOptions<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for ShowWindowOptions<'a>
impl<'a> PartialOrd for ShowWindowOptions<'a>
source§fn partial_cmp(&self, other: &ShowWindowOptions<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ShowWindowOptions<'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 ShowWindowOptions<'a>
impl<'a> StructuralPartialEq for ShowWindowOptions<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ShowWindowOptions<'a>
impl<'a> Send for ShowWindowOptions<'a>
impl<'a> Sync for ShowWindowOptions<'a>
impl<'a> Unpin for ShowWindowOptions<'a>
impl<'a> UnwindSafe for ShowWindowOptions<'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