[][src]Trait rustpython_vm::scope::NameProtocol

pub trait NameProtocol {
    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); }

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)

Loading content...

Implementors

impl NameProtocol for Scope[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_global(&self, vm: &VirtualMachine, name: &str) -> Option<PyObjectRef>[src]

Load a global name.

Loading content...