Struct pyo3::ffi::PyConfig

source ·
#[repr(C)]
pub struct PyConfig {
Show 54 fields pub _config_init: i32, pub isolated: i32, pub use_environment: i32, pub dev_mode: i32, pub install_signal_handlers: i32, pub use_hash_seed: i32, pub hash_seed: u64, pub faulthandler: i32, pub tracemalloc: i32, pub import_time: i32, pub show_ref_count: i32, pub show_alloc_count: i32, pub dump_refs: i32, pub malloc_stats: i32, pub filesystem_encoding: *mut i32, pub filesystem_errors: *mut i32, pub pycache_prefix: *mut i32, pub parse_argv: i32, pub argv: PyWideStringList, pub program_name: *mut i32, pub xoptions: PyWideStringList, pub warnoptions: PyWideStringList, pub site_import: i32, pub bytes_warning: i32, pub inspect: i32, pub interactive: i32, pub optimization_level: i32, pub parser_debug: i32, pub write_bytecode: i32, pub verbose: i32, pub quiet: i32, pub user_site_directory: i32, pub configure_c_stdio: i32, pub buffered_stdio: i32, pub stdio_encoding: *mut i32, pub stdio_errors: *mut i32, pub check_hash_pycs_mode: *mut i32, pub pathconfig_warnings: i32, pub pythonpath_env: *mut i32, pub home: *mut i32, pub module_search_paths_set: i32, pub module_search_paths: PyWideStringList, pub executable: *mut i32, pub base_executable: *mut i32, pub prefix: *mut i32, pub base_prefix: *mut i32, pub exec_prefix: *mut i32, pub base_exec_prefix: *mut i32, pub skip_source_first_line: i32, pub run_command: *mut i32, pub run_module: *mut i32, pub run_filename: *mut i32, pub _install_importlib: i32, pub _init_main: i32,
}

Fields§

§_config_init: i32§isolated: i32§use_environment: i32§dev_mode: i32§install_signal_handlers: i32§use_hash_seed: i32§hash_seed: u64§faulthandler: i32§tracemalloc: i32§import_time: i32§show_ref_count: i32§show_alloc_count: i32§dump_refs: i32§malloc_stats: i32§filesystem_encoding: *mut i32§filesystem_errors: *mut i32§pycache_prefix: *mut i32§parse_argv: i32§argv: PyWideStringList§program_name: *mut i32§xoptions: PyWideStringList§warnoptions: PyWideStringList§site_import: i32§bytes_warning: i32§inspect: i32§interactive: i32§optimization_level: i32§parser_debug: i32§write_bytecode: i32§verbose: i32§quiet: i32§user_site_directory: i32§configure_c_stdio: i32§buffered_stdio: i32§stdio_encoding: *mut i32§stdio_errors: *mut i32§check_hash_pycs_mode: *mut i32§pathconfig_warnings: i32§pythonpath_env: *mut i32§home: *mut i32§module_search_paths_set: i32§module_search_paths: PyWideStringList§executable: *mut i32§base_executable: *mut i32§prefix: *mut i32§base_prefix: *mut i32§exec_prefix: *mut i32§base_exec_prefix: *mut i32§skip_source_first_line: i32§run_command: *mut i32§run_module: *mut i32§run_filename: *mut i32§_install_importlib: i32§_init_main: i32

Trait Implementations§

source§

impl Clone for PyConfig

source§

fn clone(&self) -> PyConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for PyConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.