Struct rustpython_vm::vm::Settings
source · #[non_exhaustive]pub struct Settings {Show 26 fields
pub debug: bool,
pub inspect: bool,
pub interactive: bool,
pub optimize: u8,
pub no_sig_int: bool,
pub no_user_site: bool,
pub no_site: bool,
pub ignore_environment: bool,
pub verbose: u8,
pub quiet: bool,
pub dont_write_bytecode: bool,
pub safe_path: bool,
pub bytes_warning: u64,
pub xopts: Vec<(String, Option<String>)>,
pub int_max_str_digits: i64,
pub isolated: bool,
pub dev_mode: bool,
pub warn_default_encoding: bool,
pub warnopts: Vec<String>,
pub path_list: Vec<String>,
pub argv: Vec<String>,
pub hash_seed: Option<u32>,
pub stdio_unbuffered: bool,
pub check_hash_based_pycs: String,
pub allow_external_library: bool,
pub utf8_mode: u8,
}Expand description
Struct containing all kind of settings for the python vm.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.debug: bool-d command line switch
inspect: bool-i
interactive: bool-i, with no script
optimize: u8-O optimization switch counter
no_sig_int: boolNot set SIGINT handler(i.e. for embedded mode)
no_user_site: bool-s
no_site: bool-S
ignore_environment: bool-E
verbose: u8verbosity level (-v switch)
quiet: bool-q
dont_write_bytecode: bool-B
safe_path: bool-P
bytes_warning: u64-b
xopts: Vec<(String, Option<String>)>-Xfoo[=bar]
int_max_str_digits: i64-X int_max_str_digits
isolated: bool-I
dev_mode: bool-Xdev
warn_default_encoding: bool-X warn_default_encoding, PYTHONWARNDEFAULTENCODING
warnopts: Vec<String>-Wfoo
path_list: Vec<String>Environment PYTHONPATH and RUSTPYTHONPATH:
argv: Vec<String>sys.argv
hash_seed: Option<u32>PYTHONHASHSEED=x
stdio_unbuffered: bool-u, PYTHONUNBUFFERED=x
check_hash_based_pycs: String–check-hash-based-pycs
allow_external_library: boolfalse for wasm. Not a command-line option
utf8_mode: u8Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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