pub struct PythonOptions {
pub python_namespace: String,
pub python_path: Vec<String>,
pub imports: BTreeMap<String, HashSet<String>>,
pub scope: Scope,
pub stdpython: String,
pub with_std_python: bool,
pub allow_unsafe: bool,
}
Expand description
The global context for Python compilation.
Fields§
§python_namespace: String
Python imports are mapped into a given namespace that can be changed.
python_path: Vec<String>
The default path we will search for Python modules.
imports: BTreeMap<String, HashSet<String>>
Collects all of the things we need to compile imports[module][asnames]
scope: Scope
§stdpython: String
§with_std_python: bool
§allow_unsafe: bool
Trait Implementations§
Source§impl Clone for PythonOptions
impl Clone for PythonOptions
Source§fn clone(&self) -> PythonOptions
fn clone(&self) -> PythonOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PythonOptions
impl Debug for PythonOptions
Auto Trait Implementations§
impl Freeze for PythonOptions
impl RefUnwindSafe for PythonOptions
impl Send for PythonOptions
impl Sync for PythonOptions
impl Unpin for PythonOptions
impl UnwindSafe for PythonOptions
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