pyo3::ffi

Struct PyConfig

Source
#[repr(C)]
pub struct PyConfig {
Show 57 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 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 orig_argv: PyWideStringList, pub argv: PyWideStringList, pub xoptions: PyWideStringList, pub warnoptions: PyWideStringList, pub site_import: i32, pub bytes_warning: i32, pub warn_default_encoding: 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 program_name: *mut i32, pub pythonpath_env: *mut i32, pub home: *mut i32, pub platlibdir: *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, pub _isolated_interpreter: 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§dump_refs: i32§malloc_stats: i32§filesystem_encoding: *mut i32§filesystem_errors: *mut i32§pycache_prefix: *mut i32§parse_argv: i32§orig_argv: PyWideStringList§argv: PyWideStringList§xoptions: PyWideStringList§warnoptions: PyWideStringList§site_import: i32§bytes_warning: i32§warn_default_encoding: 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§program_name: *mut i32§pythonpath_env: *mut i32§home: *mut i32§platlibdir: *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§_isolated_interpreter: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

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>,

Source§

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>,

Source§

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.