Struct code_generator::Include
source · pub struct Include { /* private fields */ }Implementations§
source§impl Include
impl Include
sourcepub fn new(file_name: &str) -> Include
pub fn new(file_name: &str) -> Include
Creates an Include generator
This struct allows includes to be adapted to the naming of the config
let inc = Include::new("my_testFile");
let info = CodeGenerationInfo::from_style(CodeStyle::KnR);
assert_eq!("#include \"MyTestfile.h\"", format!("{}", inc.display(info)));sourcepub fn new_sys(file_name: &str) -> Include
pub fn new_sys(file_name: &str) -> Include
Creates an Include generator
This struct allows includes to be adapted to the naming of the config
let inc = Include::new_sys("my_testFile");
let info = CodeGenerationInfo::from_style(CodeStyle::KnR);
assert_eq!("#include <my_testFile.h>", format!("{}", inc.display(info)));Trait Implementations§
Auto Trait Implementations§
impl Freeze for Include
impl RefUnwindSafe for Include
impl Send for Include
impl Sync for Include
impl Unpin for Include
impl UnwindSafe for Include
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