[][src]Struct rant::runtime::CallStack

pub struct CallStack { /* fields omitted */ }

Represents a call stack and its associated locals.

Implementations

impl CallStack[src]

pub fn new() -> Self[src]

pub fn is_empty(&self) -> bool[src]

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

pub fn pop_frame(&mut self) -> Option<StackFrame>[src]

pub fn push_frame(&mut self, frame: StackFrame)[src]

pub fn top_mut(&mut self) -> Option<&mut StackFrame>[src]

pub fn top(&self) -> Option<&StackFrame>[src]

pub fn gen_stack_trace(&self) -> String[src]

pub fn set_var_value(
    &mut self,
    context: &mut Rant,
    id: &str,
    access: AccessPathKind,
    val: RantValue
) -> RuntimeResult<()>
[src]

pub fn get_var_value(
    &self,
    context: &Rant,
    id: &str,
    access: AccessPathKind,
    prefer_function: bool
) -> RuntimeResult<RantValue>
[src]

pub fn get_var_mut<'a>(
    &'a mut self,
    context: &'a mut Rant,
    id: &str,
    access: AccessPathKind
) -> RuntimeResult<&'a mut RantVar>
[src]

pub fn def_var(
    &mut self,
    context: &mut Rant,
    id: &str,
    access: AccessPathKind,
    var: RantVar
) -> RuntimeResult<()>
[src]

pub fn def_var_value(
    &mut self,
    context: &mut Rant,
    id: &str,
    access: AccessPathKind,
    val: RantValue
) -> RuntimeResult<()>
[src]

pub fn taste_for_first(&self, target_flavor: StackFrameFlavor) -> Option<usize>[src]

Scans ("tastes") the stack from the top looking for the first occurrence of the specified frame flavor. Returns the top-relative index of the first occurrence, or None if no match was found or a stronger flavor was found first.

pub fn taste_for(&self, target_flavor: StackFrameFlavor) -> Option<usize>[src]

Scans ("tastes") the stack from the top looking for the first occurrence of the specified frame flavor. Returns the top-relative index of the first occurrence, or None if no match was found or another flavor was found first.

Trait Implementations

impl Default for CallStack[src]

Auto Trait Implementations

impl !RefUnwindSafe for CallStack

impl !Send for CallStack

impl !Sync for CallStack

impl Unpin for CallStack

impl !UnwindSafe for CallStack

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.

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