pub struct CppConfig { /* private fields */ }
Expand description
Configuration for C++ binding generation
Implementations§
Source§impl CppConfig
impl CppConfig
Sourcepub fn new(output_dir: PathBuf, namespace_name: String) -> CppConfig
pub fn new(output_dir: PathBuf, namespace_name: String) -> CppConfig
Create CppConfig
§Arguments
output_dir
- directory where place generated c++ filesnamespace_name
- namespace name for generated c++ classes
pub fn cpp_optional(self, cpp_optional: CppOptional) -> CppConfig
pub fn cpp_variant(self, cpp_variant: CppVariant) -> CppConfig
pub fn cpp_str_view(self, cpp_str_view: CppStrView) -> CppConfig
Sourcepub fn use_boost(self) -> CppConfig
pub fn use_boost(self) -> CppConfig
Use boost for that fit: Result -> boost::variant, Option -> boost::optional, &str -> boost::string_view
Sourcepub fn separate_impl_headers(self, separate_impl_headers: bool) -> CppConfig
pub fn separate_impl_headers(self, separate_impl_headers: bool) -> CppConfig
Create separate *_impl.hpp files with methods’ implementations. Can be necessary for the project with circular dependencies between classes.
Auto Trait Implementations§
impl Freeze for CppConfig
impl RefUnwindSafe for CppConfig
impl Send for CppConfig
impl Sync for CppConfig
impl Unpin for CppConfig
impl UnwindSafe for CppConfig
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