pub struct InterpreterConfigBuilder {
implementation: PythonImplementation,
version: PythonVersion,
shared: bool,
target_abi: Option<PythonAbi>,
lib_name: Option<String>,
lib_dir: Option<String>,
executable: Option<String>,
pointer_width: Option<u32>,
build_flags: BuildFlags,
suppress_build_script_link_lines: bool,
extra_build_script_lines: Vec<String>,
python_framework_prefix: Option<String>,
}Fields§
§implementation: PythonImplementation§version: PythonVersion§target_abi: Option<PythonAbi>§lib_name: Option<String>§lib_dir: Option<String>§executable: Option<String>§pointer_width: Option<u32>§build_flags: BuildFlags§suppress_build_script_link_lines: bool§extra_build_script_lines: Vec<String>§python_framework_prefix: Option<String>Implementations§
Source§impl InterpreterConfigBuilder
impl InterpreterConfigBuilder
pub fn new( implementation: PythonImplementation, version: PythonVersion, ) -> InterpreterConfigBuilder
pub fn target_abi(self, target_abi: PythonAbi) -> InterpreterConfigBuilder
pub fn stable_abi(self, kind: StableAbi) -> InterpreterConfigBuilder
pub fn free_threaded(self) -> Result<InterpreterConfigBuilder>
pub fn lib_name( self, lib_name: impl Into<Option<String>>, ) -> InterpreterConfigBuilder
pub fn pointer_width( self, pointer_width: impl Into<Option<u32>>, ) -> InterpreterConfigBuilder
pub fn executable( self, executable: impl Into<Option<String>>, ) -> InterpreterConfigBuilder
pub fn suppress_build_script_link_lines( self, suppress_build_script_link_lines: bool, ) -> InterpreterConfigBuilder
pub fn extra_build_script_lines( self, extra_build_script_lines: Vec<String>, ) -> InterpreterConfigBuilder
pub fn lib_dir( self, lib_dir: impl Into<Option<String>>, ) -> InterpreterConfigBuilder
pub fn build_flags(self, build_flags: BuildFlags) -> InterpreterConfigBuilder
pub fn python_framework_prefix( self, python_framework_prefix: impl Into<Option<String>>, ) -> InterpreterConfigBuilder
pub fn finalize(self) -> Result<InterpreterConfig>
Auto Trait Implementations§
impl Freeze for InterpreterConfigBuilder
impl RefUnwindSafe for InterpreterConfigBuilder
impl Send for InterpreterConfigBuilder
impl Sync for InterpreterConfigBuilder
impl Unpin for InterpreterConfigBuilder
impl UnsafeUnpin for InterpreterConfigBuilder
impl UnwindSafe for InterpreterConfigBuilder
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> 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. (
ptr_alignment_type)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