# pyo3::ffi::PyConfig - Rust
API documentation for the Rust `PyConfig` struct in crate `pyo3`.
Keywords: rust, rustlang, rust-lang, PyConfig

# Struct pyo3::ffi::PyConfig [−] [src]

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

## Fields

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

## Trait Implementations

### `impl Clone for PyConfig` [src]

#### `fn clone(&self) -> PyConfig` [src]

Returns a copy of the value. Read more

#### `pub fn clone_from(&mut self, source: &Self)`1.0.0 [src]

Performs copy-assignment from `source`. Read more

### `impl Copy for PyConfig` [src]

## Auto Trait Implementations

### `impl RefUnwindSafe for PyConfig`

### `impl !Send for PyConfig`

### `impl !Sync for PyConfig`

### `impl Unpin for PyConfig`

### `impl UnwindSafe for PyConfig`

## Blanket Implementations

### `impl<T> Any for T where
T: 'static + ?Sized,` [src]

#### `pub fn type_id(&self) -> TypeId` [src]

Gets the `TypeId` of `self`. Read more

### `impl<T> Borrow<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow(&self) -> &T` [src]

Immutably borrows from an owned value. Read more

### `impl<T> BorrowMut<T> for T where
T: ?Sized,` [src]

#### `pub fn borrow_mut(&mut self) -> &mut T` [src]

Mutably borrows from an owned value. Read more

### `impl<T> From<T> for T` [src]

#### `pub fn from(t: T) -> T` [src]

Performs the conversion.

### `impl<T, U> Into<U> for T where
U: From<T>,` [src]

#### `pub fn into(self) -> U` [src]

Performs the conversion.

### `impl<T> ToOwned for T where
T: Clone,` [src]

#### `type Owned = T`

The resulting type after obtaining ownership.

#### `pub fn to_owned(&self) -> T` [src]

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

#### `pub fn clone_into(&self, target: &mut T)` [src]

🔬 This is a nightly-only experimental API. (`toowned_clone_into`)

recently added

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

### `impl<T, U> TryFrom<U> for T where
U: Into<T>,` [src]

#### `type Error = Infallible`

The type returned in the event of a conversion error.

#### `pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>` [src]

Performs the conversion.

### `impl<T, U> TryInto<U> for T where
U: TryFrom<T>,` [src]

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

The type returned in the event of a conversion error.

#### `pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>` [src]

Performs the conversion.