pub struct ParsedCommands { /* private fields */ }Expand description
Parser output for one command list.
Implementations§
Source§impl ParsedCommands
impl ParsedCommands
Sourcepub fn commands(&self) -> &[ParsedCommand]
pub fn commands(&self) -> &[ParsedCommand]
Returns the parsed command sequence.
Sourcepub fn assignments(&self) -> &[EnvironmentAssignment]
pub fn assignments(&self) -> &[EnvironmentAssignment]
Returns parse-time environment assignments.
Sourcepub const fn grouping(&self) -> CommandGrouping
pub const fn grouping(&self) -> CommandGrouping
Returns how queue group IDs should be assigned for this parsed list.
Sourcepub fn into_commands(self) -> Vec<ParsedCommand>
pub fn into_commands(self) -> Vec<ParsedCommand>
Consumes the list and returns only the command sequence.
Sourcepub fn append(&mut self, other: Self)
pub fn append(&mut self, other: Self)
Appends another parsed command list, preserving the grouping mode of this list.
Sourcepub fn to_tmux_string(&self) -> String
pub fn to_tmux_string(&self) -> String
Converts the parsed commands back to a tmux-style command string.
Trait Implementations§
Source§impl Clone for ParsedCommands
impl Clone for ParsedCommands
Source§fn clone(&self) -> ParsedCommands
fn clone(&self) -> ParsedCommands
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParsedCommands
impl Debug for ParsedCommands
Source§impl Default for ParsedCommands
impl Default for ParsedCommands
Source§fn default() -> ParsedCommands
fn default() -> ParsedCommands
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParsedCommands
impl PartialEq for ParsedCommands
Source§fn eq(&self, other: &ParsedCommands) -> bool
fn eq(&self, other: &ParsedCommands) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParsedCommands
impl StructuralPartialEq for ParsedCommands
Auto Trait Implementations§
impl Freeze for ParsedCommands
impl RefUnwindSafe for ParsedCommands
impl Send for ParsedCommands
impl Sync for ParsedCommands
impl Unpin for ParsedCommands
impl UnsafeUnpin for ParsedCommands
impl UnwindSafe for ParsedCommands
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