Struct hippo_shared::Preprocessor[][src]

pub struct Preprocessor {
    pub command: String,
    pub flags: Vec<String>,
    pub prefix: Option<String>,
    pub format: OutputFormat,
}

An agent responsible for preprocessor orchestration.

Fields

command: String

The command associated with the preprocessor.

flags: Vec<String>

The collection of program options that will influence the command behavior.

prefix: Option<String>

The path to the prepended to any input argument.

format: OutputFormat

The output format of the preprocessor. Defaults to bytes.

Implementations

impl Preprocessor[src]

pub fn new(command: &str) -> Self[src]

Construct a preprocessor.

pub fn rewrite_arguments(&self, args: &Vec<String>) -> Vec<String>[src]

Rewrite input arguments into absolute paths.

pub fn execute(&self, args: &Vec<String>) -> Result<Output>[src]

Execute the preprocessor with input arguments.

Trait Implementations

impl<'de> Deserialize<'de> for Preprocessor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.