Struct rant::runtime::StackFrame[][src]

pub struct StackFrame<I> { /* fields omitted */ }

Represents a call stack frame.

Implementations

impl<I> StackFrame<I>[src]

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

Gets the Program Counter (PC) for the frame.

pub fn flavor(&self) -> StackFrameFlavor[src]

Gets the flavor of the frame.

pub fn output(&self) -> Option<&OutputWriter>[src]

pub fn origin(&self) -> &Rc<RantProgramInfo>[src]

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

pub fn origin_name(&self) -> &str[src]

pub fn push_intent_front(&mut self, intent: I)[src]

Pushes an intent to the front of the queue so that it is handled next.

pub fn push_intent_back(&mut self, intent: I)[src]

Pushes an intent to the back of the queue so that it is handled last.

pub fn use_output_mut<F: FnOnce(&mut OutputWriter)>(&mut self, func: F)[src]

If the frame has output, runs func on a mutable reference to the output; otherwise, does nothing.

pub fn use_output<'a, F: FnOnce(&'a OutputWriter) -> R, R>(
    &'a self,
    func: F
) -> Option<R>
[src]

If the frame has output, runs func on a reference to the output; otherwise, does nothing.

pub fn set_debug_info(&mut self, info: &DebugInfo)[src]

Writes debug information to the current frame to be used in stack trace generation.

impl<I> StackFrame<I>[src]

pub fn write_frag(&mut self, frag: &str)[src]

Writes a fragment to the frame’s output.

pub fn write_ws(&mut self, ws: &str)[src]

Writes a whitespace string to the frame’s output.

pub fn write_value(&mut self, val: RantValue)[src]

Writes a value to the frame’s output.

pub fn into_output(self) -> Option<RantValue>[src]

Consumes the frame’s output and returns the final value generated by it.

Trait Implementations

impl<I> Display for StackFrame<I>[src]

Auto Trait Implementations

impl<I> !RefUnwindSafe for StackFrame<I>

impl<I> !Send for StackFrame<I>

impl<I> !Sync for StackFrame<I>

impl<I> Unpin for StackFrame<I> where
    I: Unpin

impl<I> !UnwindSafe for StackFrame<I>

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> ToString for T where
    T: Display + ?Sized
[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>,