Struct ligen_cmake_core::Generator [−][src]
pub struct Generator;
Expand description
CMake project generator.
Trait Implementations
fn generate_ffi(
&self,
_context: &Context,
_implementation: Option<&ImplementationVisitor>
) -> TokenStream
fn generate_ffi(
&self,
_context: &Context,
_implementation: Option<&ImplementationVisitor>
) -> TokenStream
Generate FFI.
fn generate_files(
&self,
context: &Context,
file_set: &mut FileSet,
_implementation: Option<&ImplementationVisitor>
)
fn generate_files(
&self,
context: &Context,
file_set: &mut FileSet,
_implementation: Option<&ImplementationVisitor>
)
Generate files.
Creates a new generator using contextual information and attributes.
fn pre_process(
&self,
_context: &Context,
implementation: Option<&Implementation>
) -> Option<Implementation>
fn pre_process(
&self,
_context: &Context,
implementation: Option<&Implementation>
) -> Option<Implementation>
Pre-processes the input. The default implementation returns a transformed input with all the
Self
and self
occurrences replaced by the actual object name. Read more
fn generate(
&self,
context: &Context,
implementation: Option<&Implementation>
) -> Result<TokenStream, Error>
fn generate(
&self,
context: &Context,
implementation: Option<&Implementation>
) -> Result<TokenStream, Error>
Main function called in the procedural macro.
fn save_file_set(
&self,
context: &Context,
file_set: FileSet
) -> Result<(), Error>
fn save_file_set(
&self,
context: &Context,
file_set: FileSet
) -> Result<(), Error>
Saves the file set.
Auto Trait Implementations
impl RefUnwindSafe for Generator
impl UnwindSafe for Generator
Blanket Implementations
Mutably borrows from an owned value. Read more