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