pub struct CppBuildConfigData { /* private fields */ }Expand description
Platform-specific information
required to build the C++ wrapper library.
This type contains one configuration item of CppBuildConfig.
Implementations§
Source§impl CppBuildConfigData
impl CppBuildConfigData
Sourcepub fn add_linked_lib<P: Into<String>>(&mut self, lib: P)
pub fn add_linked_lib<P: Into<String>>(&mut self, lib: P)
Adds a library for linking. Used as -l option to the linker.
Sourcepub fn add_linked_framework<P: Into<String>>(&mut self, lib: P)
pub fn add_linked_framework<P: Into<String>>(&mut self, lib: P)
Adds a framework for linking (OS X specific). Used as -f option to the linker.
Sourcepub fn add_compiler_flag<P: Into<String>>(&mut self, lib: P)
pub fn add_compiler_flag<P: Into<String>>(&mut self, lib: P)
Adds a command line argument for the C++ compiler.
Sourcepub fn add_compiler_flags<Item, Iter>(&mut self, items: Iter)
pub fn add_compiler_flags<Item, Iter>(&mut self, items: Iter)
Adds multiple flags. See CppBuildConfigData::add_cpp_compiler_flag.
pub fn add_cmake_var(&mut self, var: CMakeVar)
Sourcepub fn set_library_type(&mut self, t: CppLibraryType)
pub fn set_library_type(&mut self, t: CppLibraryType)
Sets library type. C++ wrapper is static by default. Shared library can be used to work around MSVC linker’s limitations.
Sourcepub fn linked_libs(&self) -> &[String]
pub fn linked_libs(&self) -> &[String]
Returns names of linked libraries.
Sourcepub fn linked_frameworks(&self) -> &[String]
pub fn linked_frameworks(&self) -> &[String]
Returns names of linked frameworks.
Sourcepub fn compiler_flags(&self) -> &[String]
pub fn compiler_flags(&self) -> &[String]
Returns C++ compiler flags.
Sourcepub fn library_type(&self) -> Option<CppLibraryType>
pub fn library_type(&self) -> Option<CppLibraryType>
Returns type of C++ wrapper libary (shared or static).
pub fn cmake_vars(&self) -> &[CMakeVar]
Trait Implementations§
Source§impl Clone for CppBuildConfigData
impl Clone for CppBuildConfigData
Source§fn clone(&self) -> CppBuildConfigData
fn clone(&self) -> CppBuildConfigData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CppBuildConfigData
impl Debug for CppBuildConfigData
Source§impl Default for CppBuildConfigData
impl Default for CppBuildConfigData
Source§fn default() -> CppBuildConfigData
fn default() -> CppBuildConfigData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CppBuildConfigData
impl<'de> Deserialize<'de> for CppBuildConfigData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CppBuildConfigData
impl RefUnwindSafe for CppBuildConfigData
impl Send for CppBuildConfigData
impl Sync for CppBuildConfigData
impl Unpin for CppBuildConfigData
impl UnwindSafe for CppBuildConfigData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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