pub struct SmartOverrideParser { /* private fields */ }Expand description
Smart override parser
Implementations§
Source§impl SmartOverrideParser
impl SmartOverrideParser
Sourcepub fn new(subcommand: impl Into<String>) -> Self
pub fn new(subcommand: impl Into<String>) -> Self
Create a new parser with the given cargo subcommand context
Sourcepub fn parse(&self, input: &str) -> ParsedOverrides
pub fn parse(&self, input: &str) -> ParsedOverrides
Parse raw input string into override components
Sourcepub fn parse_vscode_input(
&self,
input: &str,
) -> (ParsedOverrides, HashMap<String, OverrideOperator>)
pub fn parse_vscode_input( &self, input: &str, ) -> (ParsedOverrides, HashMap<String, OverrideOperator>)
Parse VS Code input with operator support
Auto Trait Implementations§
impl Freeze for SmartOverrideParser
impl RefUnwindSafe for SmartOverrideParser
impl Send for SmartOverrideParser
impl Sync for SmartOverrideParser
impl Unpin for SmartOverrideParser
impl UnwindSafe for SmartOverrideParser
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