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