pub struct CppCodegenOptions<'a> {
pub suppress_system_headers: bool,
pub path_to_cxx_h: Option<String>,
pub path_to_cxxgen_h: Option<String>,
pub autocxxgen_header_namer: AutocxxgenHeaderNamer<'a>,
pub cxxgen_header_namer: CxxgenHeaderNamer<'a>,
pub cxx_impl_annotations: Option<String>,
}Expand description
Options for C++ codegen
Fields§
§suppress_system_headers: boolWhether to avoid generating #include <some-system-header>.
You may wish to do this to make a hermetic test case with no
external dependencies.
path_to_cxx_h: Option<String>Optionally, a prefix to go at #include "*here*cxx.h". This is a header file from the cxx`
crate.
path_to_cxxgen_h: Option<String>Optionally, a prefix to go at `#include “herecxxgen.h”. This is a header file which we generate.
autocxxgen_header_namer: AutocxxgenHeaderNamer<'a>Optionally, a function called to determine the name that will be used
for the autocxxgen.h file.
The function is passed the name of the module generated by each include_cpp,
configured via name. These will be unique.
cxxgen_header_namer: CxxgenHeaderNamer<'a>A function to generate the name of the cxxgen.h header that should be output.
cxx_impl_annotations: Option<String>An annotation optionally to include on each C++ function. For example to export the symbol from a library.
Trait Implementations§
Source§impl<'a> Default for CppCodegenOptions<'a>
impl<'a> Default for CppCodegenOptions<'a>
Source§fn default() -> CppCodegenOptions<'a>
fn default() -> CppCodegenOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for CppCodegenOptions<'a>
impl<'a> !RefUnwindSafe for CppCodegenOptions<'a>
impl<'a> !Send for CppCodegenOptions<'a>
impl<'a> !Sync for CppCodegenOptions<'a>
impl<'a> Unpin for CppCodegenOptions<'a>
impl<'a> !UnwindSafe for CppCodegenOptions<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more