pub struct ParsedCmdline {
pub name: String,
pub bang: bool,
pub args: Vec<String>,
pub raw_args: String,
}Expand description
Parsed command-line input.
Result of parsing a string like "write! filename.txt" into
structured components: name ("write"), bang (true),
args (["filename.txt"]), raw_args ("filename.txt").
Fields§
§name: StringThe command name (e.g., "write", "q").
bang: boolWhether the command was invoked with ! (e.g., :q!).
args: Vec<String>Positional arguments after the command name (whitespace-split).
raw_args: StringRaw argument text after the command name (preserves quoting and spacing).
Trait Implementations§
Source§impl Clone for ParsedCmdline
impl Clone for ParsedCmdline
Source§fn clone(&self) -> ParsedCmdline
fn clone(&self) -> ParsedCmdline
Returns a duplicate 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 Debug for ParsedCmdline
impl Debug for ParsedCmdline
Source§impl PartialEq for ParsedCmdline
impl PartialEq for ParsedCmdline
impl Eq for ParsedCmdline
impl StructuralPartialEq for ParsedCmdline
Auto Trait Implementations§
impl Freeze for ParsedCmdline
impl RefUnwindSafe for ParsedCmdline
impl Send for ParsedCmdline
impl Sync for ParsedCmdline
impl Unpin for ParsedCmdline
impl UnsafeUnpin for ParsedCmdline
impl UnwindSafe for ParsedCmdline
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