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 input: Input,
    pub module: &'static str,
    pub verbose: u8,
}

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: boolpython_ver: Option<u32>py_server_timeout: u64input: Inputmodule: &'static strverbose: u8

verbosity level for system messages.

  • 0: display errors
  • 1: display errors and warns
  • 2 (default): display errors, warnings and hints

Implementations

cloneのエイリアス(実際のcloneコストは低いので)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.