GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • rustpython_vm
  • scope

This view

  • Original page
  • New address

GeezerVison is showing rustpython.github.io — rustpython_vm::scope::Scope - Rust

[−][src]Struct rustpython_vm::scope::Scope

pub struct Scope {
    pub globals: PyDictRef,
    // some fields omitted
}

Fields

globals: PyDictRef

Methods

impl Scope[src]

pub fn new(
    locals: Option<PyDictRef>,
    globals: PyDictRef,
    vm: &VirtualMachine
) -> Scope
[src]

pub fn with_builtins(
    locals: Option<PyDictRef>,
    globals: PyDictRef,
    vm: &VirtualMachine
) -> Scope
[src]

pub fn get_locals(&self) -> PyDictRef[src]

pub fn get_only_locals(&self) -> Option<PyDictRef>[src]

pub fn new_child_scope_with_locals(&self, locals: PyDictRef) -> Scope[src]

pub fn new_child_scope(&self, ctx: &PyContext) -> Scope[src]

Trait Implementations

impl Clone for Scope[src]

fn clone(&self) -> Scope[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Scope[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Formats the value using the given formatter. Read more

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.

fn store_global(&self, vm: &VirtualMachine, name: &str, value: PyObjectRef)[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

fn to_owned(&self) -> T[src]

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

fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

fn vzip(self) -> V

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.