[−][src]Struct capnpc::codegen::CodeGenerationCommand
An invocation of the capnpc-rust code generation plugin.
Implementations
impl CodeGenerationCommand
[src]
pub fn new() -> CodeGenerationCommand
[src]
Creates a new code generation command with default options.
pub fn output_directory<P>(&mut self, path: P) -> &mut Self where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Sets the output directory.
pub fn default_parent_module(
&mut self,
default_parent_module: Vec<String>
) -> &mut Self
[src]
&mut self,
default_parent_module: Vec<String>
) -> &mut Self
Sets the default parent module, indicating the scope in your crate where you will add the generated code.
This option can be overridden by the parentModule
annotation defined in rust.capnp
.
pub fn run<T>(&mut self, inp: T) -> Result<()> where
T: Read,
[src]
T: Read,
Generates Rust code according to a schema_capnp::code_generator_request
read from inp
.
Auto Trait Implementations
impl RefUnwindSafe for CodeGenerationCommand
[src]
impl Send for CodeGenerationCommand
[src]
impl Sync for CodeGenerationCommand
[src]
impl Unpin for CodeGenerationCommand
[src]
impl UnwindSafe for CodeGenerationCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,