pub struct CxxQtBuildersOpts { /* private fields */ }Expand description
Options for external crates to use
Implementations§
Source§impl CxxQtBuildersOpts
impl CxxQtBuildersOpts
Sourcepub fn define(self, define: &str) -> Self
pub fn define(self, define: &str) -> Self
Any additional defines that are required from this opt
Sourcepub fn header(self, contents: &str, directory: &str, file_name: &str) -> Self
pub fn header(self, contents: &str, directory: &str, file_name: &str) -> Self
Any additional headers that are required from this opt
These are placed in the given sub directory with the given file name
Sourcepub fn qt_module(self, module: &str) -> Self
pub fn qt_module(self, module: &str) -> Self
Link additional Qt modules for this opt.
Specify their names without the Qt prefix, for example "Widgets".
Sourcepub fn initializer(self, initializers: &str) -> Self
pub fn initializer(self, initializers: &str) -> Self
Add initializer C++ code that must be compiled into an object file or linked with whole-archive so that the linker doesn’t optimize it out.
Trait Implementations§
Source§impl Default for CxxQtBuildersOpts
impl Default for CxxQtBuildersOpts
Source§fn default() -> CxxQtBuildersOpts
fn default() -> CxxQtBuildersOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CxxQtBuildersOpts
impl RefUnwindSafe for CxxQtBuildersOpts
impl Send for CxxQtBuildersOpts
impl Sync for CxxQtBuildersOpts
impl Unpin for CxxQtBuildersOpts
impl UnwindSafe for CxxQtBuildersOpts
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> 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