pub struct SimplifiedCommand {
pub original: String,
pub result: String,
pub truncate: bool,
}Fields§
§original: String§result: String§truncate: boolImplementations§
Source§impl SimplifiedCommand
The goal of SimplifiedCommand is to produce a reduced approximation of the given command for template matching. It may
not produce an exact simplification. (For example, it does not handle deeply nested escaping, and it drops escape characters.)
Possible enhancements:
impl SimplifiedCommand
The goal of SimplifiedCommand is to produce a reduced approximation of the given command for template matching. It may not produce an exact simplification. (For example, it does not handle deeply nested escaping, and it drops escape characters.) Possible enhancements:
- Sort and expand command line options.
- Check to see if unknown strings represent valid local paths in the directory where the command was run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimplifiedCommand
impl RefUnwindSafe for SimplifiedCommand
impl Send for SimplifiedCommand
impl Sync for SimplifiedCommand
impl Unpin for SimplifiedCommand
impl UnwindSafe for SimplifiedCommand
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