Struct pyo3_build_config::BuildFlags
source · pub struct BuildFlags(pub HashSet<BuildFlag>);
Expand description
A list of python interpreter compile-time preprocessor defines that
we will pick up and pass to rustc via --cfg=py_sys_config={varname}
;
this allows using them conditional cfg attributes in the .rs files, so
#[cfg(py_sys_config="{varname}")]
is the equivalent of #ifdef {varname}
in C.
see Misc/SpecialBuilds.txt in the python source for what these mean.
Tuple Fields§
§0: HashSet<BuildFlag>
Implementations§
source§impl BuildFlags
impl BuildFlags
Trait Implementations§
source§impl Clone for BuildFlags
impl Clone for BuildFlags
source§fn clone(&self) -> BuildFlags
fn clone(&self) -> BuildFlags
Returns a copy 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 Default for BuildFlags
impl Default for BuildFlags
source§fn default() -> BuildFlags
fn default() -> BuildFlags
Returns the “default value” for a type. Read more
source§impl Display for BuildFlags
impl Display for BuildFlags
Auto Trait Implementations§
impl RefUnwindSafe for BuildFlags
impl Send for BuildFlags
impl Sync for BuildFlags
impl Unpin for BuildFlags
impl UnwindSafe for BuildFlags
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