[][src]Struct dark_vm::utils::frames::Frame

pub struct Frame {
    pub name: String,
    pub current_store: Rc<RefCell<Store>>,
    // some fields omitted
}

Fields

name: Stringcurrent_store: Rc<RefCell<Store>>

Implementations

impl Frame[src]

pub fn new(
    caller_position: usize,
    name: &str,
    parent_store: Option<&Rc<RefCell<Store>>>
) -> Frame
[src]

Constructs a new frame. A Frame maintains the caller's position, along with its name. In the future, it will maintain local variables and any parameters passed in.

Arguments

caller_position - The position where this frame was called or entered. name - The name of this frame.

pub fn find(&self, name: &str, pos: usize) -> Result<Rc<Value>, Error>[src]

pub fn define(&mut self, name: &str, value: Rc<Value>)[src]

pub fn get_caller_position(&self) -> usize[src]

This function gets the position of the caller of this frame.

Trait Implementations

impl Debug for Frame[src]

impl PartialEq<Frame> for Frame[src]

impl StructuralPartialEq for Frame[src]

Auto Trait Implementations

impl !RefUnwindSafe for Frame

impl !Send for Frame

impl !Sync for Frame

impl Unpin for Frame

impl !UnwindSafe for Frame

Blanket Implementations

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

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

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

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

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

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.

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.