pub struct BuildFlags(pub HashSet<BuildFlag>);
Expand description
A list of python interpreter compile-time preprocessor defines.
PyO3 will pick these 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 Freeze for BuildFlags
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