Struct PyConfig
#[repr(C)]pub struct PyConfig {Show 65 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: u32,
pub faulthandler: i32,
pub tracemalloc: i32,
pub perf_profiling: i32,
pub import_time: i32,
pub code_debug_ranges: i32,
pub show_ref_count: i32,
pub dump_refs: i32,
pub dump_refs_file: *mut u16,
pub malloc_stats: i32,
pub filesystem_encoding: *mut u16,
pub filesystem_errors: *mut u16,
pub pycache_prefix: *mut u16,
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 u16,
pub stdio_errors: *mut u16,
pub legacy_windows_stdio: i32,
pub check_hash_pycs_mode: *mut u16,
pub use_frozen_modules: i32,
pub safe_path: i32,
pub int_max_str_digits: i32,
pub pathconfig_warnings: i32,
pub program_name: *mut u16,
pub pythonpath_env: *mut u16,
pub home: *mut u16,
pub platlibdir: *mut u16,
pub module_search_paths_set: i32,
pub module_search_paths: PyWideStringList,
pub stdlib_dir: *mut u16,
pub executable: *mut u16,
pub base_executable: *mut u16,
pub prefix: *mut u16,
pub base_prefix: *mut u16,
pub exec_prefix: *mut u16,
pub base_exec_prefix: *mut u16,
pub skip_source_first_line: i32,
pub run_command: *mut u16,
pub run_module: *mut u16,
pub run_filename: *mut u16,
pub _install_importlib: i32,
pub _init_main: i32,
pub _is_python_build: i32,
}Available on crate feature
tls only.Fields§
§_config_init: i32§isolated: i32§use_environment: i32§dev_mode: i32§install_signal_handlers: i32§use_hash_seed: i32§hash_seed: u32§faulthandler: i32§tracemalloc: i32§perf_profiling: i32Available on
§Py_3_12 only.import_time: i32§code_debug_ranges: i32Available on
§Py_3_11 only.show_ref_count: i32§dump_refs: i32§dump_refs_file: *mut u16Available on
§Py_3_11 only.malloc_stats: i32§filesystem_encoding: *mut u16§filesystem_errors: *mut u16§pycache_prefix: *mut u16§parse_argv: i32§orig_argv: PyWideStringListAvailable on
§Py_3_10 only.argv: PyWideStringList§xoptions: PyWideStringList§warnoptions: PyWideStringList§site_import: i32§bytes_warning: i32§warn_default_encoding: i32Available on
§Py_3_10 only.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 u16§stdio_errors: *mut u16§legacy_windows_stdio: i32Available on Windows only.
§check_hash_pycs_mode: *mut u16§use_frozen_modules: i32Available on
§Py_3_11 only.safe_path: i32Available on
§Py_3_11 only.int_max_str_digits: i32Available on
§Py_3_12 only.pathconfig_warnings: i32§program_name: *mut u16Available on
§Py_3_10 only.pythonpath_env: *mut u16§home: *mut u16§platlibdir: *mut u16Available on
§Py_3_10 only.module_search_paths_set: i32§module_search_paths: PyWideStringList§stdlib_dir: *mut u16Available on
§Py_3_11 only.executable: *mut u16§base_executable: *mut u16§prefix: *mut u16§base_prefix: *mut u16§exec_prefix: *mut u16§base_exec_prefix: *mut u16§skip_source_first_line: i32§run_command: *mut u16§run_module: *mut u16§run_filename: *mut u16§_install_importlib: i32§_init_main: i32§_is_python_build: i32Available on
Py_3_11 only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for PyConfig
impl RefUnwindSafe for PyConfig
impl !Send for PyConfig
impl !Sync for PyConfig
impl Unpin for PyConfig
impl UnsafeUnpin for PyConfig
impl UnwindSafe for PyConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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