Skip to main content

PyConfig

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: i32
Available on Py_3_12 only.
§import_time: i32§code_debug_ranges: i32
Available on Py_3_11 only.
§show_ref_count: i32§dump_refs: i32§dump_refs_file: *mut u16
Available 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: PyWideStringList
Available on Py_3_10 only.
§argv: PyWideStringList§xoptions: PyWideStringList§warnoptions: PyWideStringList§site_import: i32§bytes_warning: i32§warn_default_encoding: i32
Available 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: i32
Available on Windows only.
§check_hash_pycs_mode: *mut u16§use_frozen_modules: i32
Available on Py_3_11 only.
§safe_path: i32
Available on Py_3_11 only.
§int_max_str_digits: i32
Available on Py_3_12 only.
§pathconfig_warnings: i32§program_name: *mut u16
Available on Py_3_10 only.
§pythonpath_env: *mut u16§home: *mut u16§platlibdir: *mut u16
Available on Py_3_10 only.
§module_search_paths_set: i32§module_search_paths: PyWideStringList§stdlib_dir: *mut u16
Available 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: i32
Available on Py_3_11 only.

Trait Implementations§

§

impl Clone for PyConfig

§

fn clone(&self) -> PyConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more