[][src]Struct flapigen::CppConfig

pub struct CppConfig { /* fields omitted */ }

Configuration for C++ binding generation

Implementations

impl CppConfig[src]

pub fn new(output_dir: PathBuf, namespace_name: String) -> CppConfig[src]

Create CppConfig

Arguments

  • output_dir - directory where place generated c++ files
  • namespace_name - namespace name for generated c++ classes

pub fn cpp_optional(self, cpp_optional: CppOptional) -> CppConfig[src]

pub fn cpp_variant(self, cpp_variant: CppVariant) -> CppConfig[src]

pub fn cpp_str_view(self, cpp_str_view: CppStrView) -> CppConfig[src]

pub fn use_boost(self) -> CppConfig[src]

Use boost for that fit: Result -> boost::variant, Option -> boost::optional, &str -> boost::string_view

pub fn separate_impl_headers(self, separate_impl_headers: bool) -> CppConfig[src]

Create separate *_impl.hpp files with methods' implementations. Can be necessary for the project with circular dependencies between classes.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.