Struct tmux_interface::commands::options::set_window_option::SetWindowOption
source · pub struct SetWindowOption<'a> {
pub append: bool,
pub format: bool,
pub global: bool,
pub not_overwrite: bool,
pub quiet: bool,
pub unset: 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 ^2.6:
set-window-option [-aFgoqu] [-t target-window] option value
(alias: setw)
tmux ^1.9:
set-window-option [-agoqu] [-t target-window] option value
(alias: setw)
tmux ^1.7:
set-window-option [-agqu] [-t target-window] option value
(alias: setw)
tmux ^1.0:
set-window-option [-agu] [-t target-window] option value
(alias: setw)
tmux ^0.8:
set-window-option [-gu] [-t target-window] option value
(alias: setw)
Fields§
§append: bool
[-a]
-
format: bool
[-F]
-
global: bool
[-g]
-
not_overwrite: bool
[-o]
-
quiet: bool
[-q]
-
unset: bool
[-u]
-
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> SetWindowOption<'a>
impl<'a> SetWindowOption<'a>
pub fn new() -> Self
sourcepub fn not_overwrite(self) -> Self
pub fn not_overwrite(self) -> Self
[-o]
-
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 SetWindowOption<'a>
impl<'a> Clone for SetWindowOption<'a>
source§fn clone(&self) -> SetWindowOption<'a>
fn clone(&self) -> SetWindowOption<'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 SetWindowOption<'a>
impl<'a> Debug for SetWindowOption<'a>
source§impl<'a> Default for SetWindowOption<'a>
impl<'a> Default for SetWindowOption<'a>
source§fn default() -> SetWindowOption<'a>
fn default() -> SetWindowOption<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<SetWindowOption<'a>> for TmuxCommand<'a>
impl<'a> From<SetWindowOption<'a>> for TmuxCommand<'a>
source§fn from(item: SetWindowOption<'a>) -> Self
fn from(item: SetWindowOption<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for SetWindowOption<'a>
impl<'a> Hash for SetWindowOption<'a>
source§impl<'a> Ord for SetWindowOption<'a>
impl<'a> Ord for SetWindowOption<'a>
source§fn cmp(&self, other: &SetWindowOption<'a>) -> Ordering
fn cmp(&self, other: &SetWindowOption<'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 SetWindowOption<'a>
impl<'a> PartialEq for SetWindowOption<'a>
source§fn eq(&self, other: &SetWindowOption<'a>) -> bool
fn eq(&self, other: &SetWindowOption<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for SetWindowOption<'a>
impl<'a> PartialOrd for SetWindowOption<'a>
source§fn partial_cmp(&self, other: &SetWindowOption<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &SetWindowOption<'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 SetWindowOption<'a>
impl<'a> StructuralPartialEq for SetWindowOption<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SetWindowOption<'a>
impl<'a> Send for SetWindowOption<'a>
impl<'a> Sync for SetWindowOption<'a>
impl<'a> Unpin for SetWindowOption<'a>
impl<'a> UnwindSafe for SetWindowOption<'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