[−][src]Struct rant::runtime::CallStack
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]
&mut self,
context: &mut Rant,
id: &str,
access: AccessPathKind,
val: RantValue
) -> RuntimeResult<()>
pub fn get_var_value(
&self,
context: &Rant,
id: &str,
access: AccessPathKind,
prefer_function: bool
) -> RuntimeResult<RantValue>
[src]
&self,
context: &Rant,
id: &str,
access: AccessPathKind,
prefer_function: bool
) -> RuntimeResult<RantValue>
pub fn get_var_mut<'a>(
&'a mut self,
context: &'a mut Rant,
id: &str,
access: AccessPathKind
) -> RuntimeResult<&'a mut RantVar>
[src]
&'a mut self,
context: &'a mut Rant,
id: &str,
access: AccessPathKind
) -> RuntimeResult<&'a mut RantVar>
pub fn def_var(
&mut self,
context: &mut Rant,
id: &str,
access: AccessPathKind,
var: RantVar
) -> RuntimeResult<()>
[src]
&mut self,
context: &mut Rant,
id: &str,
access: AccessPathKind,
var: RantVar
) -> RuntimeResult<()>
pub fn def_var_value(
&mut self,
context: &mut Rant,
id: &str,
access: AccessPathKind,
val: RantValue
) -> RuntimeResult<()>
[src]
&mut self,
context: &mut Rant,
id: &str,
access: AccessPathKind,
val: RantValue
) -> RuntimeResult<()>
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
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]
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>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,