pub struct ProgramSpec {
pub program: String,
pub system_path: Vec<String>,
pub option_bundling: bool,
pub combined_format: bool,
pub allowed_options: HashMap<String, Opt>,
pub arg_patterns: Vec<ArgMatcher>,
/* private fields */
}Fields§
§program: String§system_path: Vec<String>§option_bundling: bool§combined_format: bool§allowed_options: HashMap<String, Opt>§arg_patterns: Vec<ArgMatcher>Implementations§
Source§impl ProgramSpec
impl ProgramSpec
Source§impl ProgramSpec
impl ProgramSpec
pub fn check(&self, exec_call: &ExecCall) -> Result<MatchedExec>
pub fn verify_should_match_list(&self) -> Vec<PositiveExampleFailedCheck>
pub fn verify_should_not_match_list(&self) -> Vec<NegativeExamplePassedCheck>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgramSpec
impl RefUnwindSafe for ProgramSpec
impl Send for ProgramSpec
impl Sync for ProgramSpec
impl Unpin for ProgramSpec
impl UnwindSafe for ProgramSpec
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more