Struct capnpc::CompilerCommand

source ·
pub struct CompilerCommand { /* private fields */ }
Expand description

A builder object for schema compiler commands.

Implementations

Creates a new, empty command.

Adds a file to be compiled.

Adds a –src-prefix flag. For all files specified for compilation that start with prefix, removes the prefix when computing output filenames.

Adds an –import_path flag. Adds dir to the list of directories searched for absolute imports.

Adds the –no-standard-import flag, indicating that the default import paths of /usr/include and /usr/local/include should not bet included.

Sets the Rust edition of the generated code.

Runs the command.

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.