pub struct CodeGen { /* private fields */ }
Implementations§
Source§impl CodeGen
impl CodeGen
pub fn new() -> Self
pub fn input(&mut self, input: impl AsRef<Path>) -> &mut Self
pub fn inputs( &mut self, inputs: impl IntoIterator<Item = impl AsRef<Path>>, ) -> &mut Self
pub fn output_dir(&mut self, output_dir: impl AsRef<Path>) -> &mut Self
pub fn include(&mut self, include: impl AsRef<Path>) -> &mut Self
pub fn includes( &mut self, includes: impl Iterator<Item = impl AsRef<Path>>, ) -> &mut Self
pub fn generate_and_compile(&self) -> Result<(), String>
Sourcepub fn compile_only(&self) -> Result<(), String>
pub fn compile_only(&self) -> Result<(), String>
Builds and links the C code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeGen
impl RefUnwindSafe for CodeGen
impl Send for CodeGen
impl Sync for CodeGen
impl Unpin for CodeGen
impl UnwindSafe for CodeGen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more