[−][src]Trait rustpython_vm::scope::NameProtocol
Required methods
fn load_name(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
fn store_name(&self, vm: &VirtualMachine, name: &str, value: PyObjectRef)
fn delete_name(&self, vm: &VirtualMachine, name: &str) -> PyResult
fn load_local(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
fn load_cell(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
fn store_cell(&self, vm: &VirtualMachine, name: &str, value: PyObjectRef)
fn load_global(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
fn store_global(&self, vm: &VirtualMachine, name: &str, value: PyObjectRef)
Implementors
impl NameProtocol for Scope
[src]
fn load_name(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
[src]
fn load_local(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
[src]
Load a local name. Only check the local dictionary for the given name.
fn load_cell(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
[src]
fn store_cell(&self, vm: &VirtualMachine, name: &str, value: PyObjectRef)
[src]
fn store_name(&self, vm: &VirtualMachine, key: &str, value: PyObjectRef)
[src]
fn delete_name(&self, vm: &VirtualMachine, key: &str) -> PyResult
[src]
fn load_global(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>
[src]
Load a global name.