[−][src]Struct dark_vm::utils::frames::Frame
Fields
name: String
current_store: Rc<RefCell<Store>>
Implementations
impl Frame
[src]
pub fn new(
caller_position: usize,
name: &str,
parent_store: Option<&Rc<RefCell<Store>>>
) -> Frame
[src]
caller_position: usize,
name: &str,
parent_store: Option<&Rc<RefCell<Store>>>
) -> Frame
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,