Struct erg_common::config::ErgConfig
source · [−]pub struct ErgConfig {
pub mode: &'static str,
pub opt_level: u8,
pub dump_as_pyc: bool,
pub python_ver: Option<u32>,
pub py_server_timeout: u64,
pub quiet_startup: bool,
pub input: Input,
pub module: &'static str,
pub verbose: u8,
pub ps1: &'static str,
pub ps2: &'static str,
}
Fields
mode: &'static str
options: lex | parse | compile | exec
opt_level: u8
optimization level.
- 0: no optimization
- 1 (default): e.g. constant folding, dead code elimination
- 2: e.g. static dispatching, inlining, peephole
- 3: e.g. JIT compiling
dump_as_pyc: bool
python_ver: Option<u32>
py_server_timeout: u64
quiet_startup: bool
input: Input
module: &'static str
module name to be executed
verbose: u8
verbosity level for system messages.
- 0: display errors
- 1: display errors and warns
- 2 (default): display errors, warnings and hints
ps1: &'static str
needed for jupyter-erg
ps2: &'static str
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ErgConfig
impl Send for ErgConfig
impl Sync for ErgConfig
impl Unpin for ErgConfig
impl UnwindSafe for ErgConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more