Struct rustpython_vm::scope::Scope
source · pub struct Scope {
pub locals: ArgMapping,
pub globals: PyDictRef,
}
Fields§
§locals: ArgMapping
§globals: PyDictRef
Implementations§
source§impl Scope
impl Scope
pub fn new(locals: Option<ArgMapping>, globals: PyDictRef) -> Scope
pub fn with_builtins( locals: Option<ArgMapping>, globals: PyDictRef, vm: &VirtualMachine ) -> Scope
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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