Struct tmux_interface::commands::tmux_commands::TmuxCommands
source · pub struct TmuxCommands<'a> {
pub commands: Vec<TmuxCommand<'a>>,
pub separator: Option<Cow<'a, str>>,
}
Expand description
Fields§
§commands: Vec<TmuxCommand<'a>>
§separator: Option<Cow<'a, str>>
Implementations§
source§impl<'a> TmuxCommands<'a>
impl<'a> TmuxCommands<'a>
pub fn push_cmds(&mut self, cmds: TmuxCommands<'a>)
pub fn add_command(self, cmd: TmuxCommand<'a>) -> Self
source§impl<'a> TmuxCommands<'a>
impl<'a> TmuxCommands<'a>
pub fn new() -> Self
pub fn push<T: Into<TmuxCommand<'a>>>(&mut self, command: T)
pub fn cmd<T: Into<TmuxCommand<'a>>>(self, command: T) -> Self
pub fn to_vec(&self) -> Vec<Cow<'a, str>>
pub fn to_command_vec(self) -> Vec<Command>
pub fn separator<S: Into<Cow<'a, str>>>(&mut self, separator: S) -> &mut Self
pub fn get_separator(&self) -> Option<&Cow<'a, str>>
pub fn into_cmds(self) -> Vec<TmuxCommand<'a>>
Trait Implementations§
source§impl<'a> Clone for TmuxCommands<'a>
impl<'a> Clone for TmuxCommands<'a>
source§fn clone(&self) -> TmuxCommands<'a>
fn clone(&self) -> TmuxCommands<'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 TmuxCommands<'a>
impl<'a> Debug for TmuxCommands<'a>
source§impl<'a> Default for TmuxCommands<'a>
impl<'a> Default for TmuxCommands<'a>
source§impl<'a> Display for TmuxCommands<'a>
impl<'a> Display for TmuxCommands<'a>
source§impl<'a> Hash for TmuxCommands<'a>
impl<'a> Hash for TmuxCommands<'a>
source§impl<'a> Ord for TmuxCommands<'a>
impl<'a> Ord for TmuxCommands<'a>
source§fn cmp(&self, other: &TmuxCommands<'a>) -> Ordering
fn cmp(&self, other: &TmuxCommands<'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 TmuxCommands<'a>
impl<'a> PartialEq for TmuxCommands<'a>
source§fn eq(&self, other: &TmuxCommands<'a>) -> bool
fn eq(&self, other: &TmuxCommands<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for TmuxCommands<'a>
impl<'a> PartialOrd for TmuxCommands<'a>
source§fn partial_cmp(&self, other: &TmuxCommands<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &TmuxCommands<'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 TmuxCommands<'a>
impl<'a> StructuralPartialEq for TmuxCommands<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TmuxCommands<'a>
impl<'a> Send for TmuxCommands<'a>
impl<'a> Sync for TmuxCommands<'a>
impl<'a> Unpin for TmuxCommands<'a>
impl<'a> UnwindSafe for TmuxCommands<'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