struct CrossCompileEnvVars {
pyo3_cross: Option<OsString>,
pyo3_cross_lib_dir: Option<OsString>,
pyo3_cross_python_version: Option<OsString>,
pyo3_cross_python_implementation: Option<OsString>,
}Expand description
PyO3-specific cross compile environment variable values
Fields§
§pyo3_cross: Option<OsString>PYO3_CROSS
pyo3_cross_lib_dir: Option<OsString>PYO3_CROSS_LIB_DIR
pyo3_cross_python_version: Option<OsString>PYO3_CROSS_PYTHON_VERSION
pyo3_cross_python_implementation: Option<OsString>PYO3_CROSS_PYTHON_IMPLEMENTATION
Implementations§
Source§impl CrossCompileEnvVars
impl CrossCompileEnvVars
Sourcefn from_env() -> Self
fn from_env() -> Self
Grabs the PyO3 cross-compile variables from the environment.
Registers the build script to rerun if any of the variables changes.
Sourcefn parse_version(&self) -> Result<(Option<PythonVersion>, Option<String>)>
fn parse_version(&self) -> Result<(Option<PythonVersion>, Option<String>)>
Parses PYO3_CROSS_PYTHON_VERSION environment variable value
into PythonVersion and ABI flags.
Sourcefn parse_implementation(&self) -> Result<Option<PythonImplementation>>
fn parse_implementation(&self) -> Result<Option<PythonImplementation>>
Parses PYO3_CROSS_PYTHON_IMPLEMENTATION environment variable value
into PythonImplementation.
Sourcefn lib_dir_path(&self) -> Result<Option<PathBuf>>
fn lib_dir_path(&self) -> Result<Option<PathBuf>>
Converts the stored PYO3_CROSS_LIB_DIR variable value (if any)
into a PathBuf instance.
Ensures that the path is a valid UTF-8 string.
Auto Trait Implementations§
impl Forget for CrossCompileEnvVars
impl Freeze for CrossCompileEnvVars
impl Move for CrossCompileEnvVars
impl RefUnwindSafe for CrossCompileEnvVars
impl Send for CrossCompileEnvVarswhere
RawVecInner: Send,
impl Sync for CrossCompileEnvVarswhere
RawVecInner: Sync,
impl Unpin for CrossCompileEnvVars
impl UnsafeUnpin for CrossCompileEnvVars
impl UnwindSafe for CrossCompileEnvVarswhere
RawVecInner: UnwindSafe,
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> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more