pub struct ParsedCommand { /* private fields */ }Expand description
One parsed tmux command with a canonical command name.
Implementations§
Source§impl ParsedCommand
impl ParsedCommand
Sourcepub fn arguments(&self) -> &[CommandArgument]
pub fn arguments(&self) -> &[CommandArgument]
Returns the parsed command arguments.
Sourcepub fn with_arguments(self, arguments: Vec<CommandArgument>) -> Self
pub fn with_arguments(self, arguments: Vec<CommandArgument>) -> Self
Returns this command with replacement arguments while preserving its source location.
Sourcepub fn start_line(&self) -> usize
pub fn start_line(&self) -> usize
Returns the first one-based input line occupied by this command.
Sourcepub fn to_tmux_string(&self) -> String
pub fn to_tmux_string(&self) -> String
Converts this command back to a tmux-style command string.
Sourcepub fn to_tmux_reparse_string(&self) -> String
pub fn to_tmux_reparse_string(&self) -> String
Converts this command to a lossless string for an internal parse-execute bridge.
Trait Implementations§
Source§impl Clone for ParsedCommand
impl Clone for ParsedCommand
Source§fn clone(&self) -> ParsedCommand
fn clone(&self) -> ParsedCommand
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 ParsedCommand
impl Debug for ParsedCommand
impl Eq for ParsedCommand
Source§impl PartialEq for ParsedCommand
impl PartialEq for ParsedCommand
impl StructuralPartialEq for ParsedCommand
Auto Trait Implementations§
impl Freeze for ParsedCommand
impl RefUnwindSafe for ParsedCommand
impl Send for ParsedCommand
impl Sync for ParsedCommand
impl Unpin for ParsedCommand
impl UnsafeUnpin for ParsedCommand
impl UnwindSafe for ParsedCommand
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