pub struct SimplifiedCommand {
    pub original: String,
    pub result: String,
    pub truncate: bool,
}

Fields

original: Stringresult: Stringtruncate: bool

Implementations

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.