Struct rant::runtime::StackFrame [−][src]
pub struct StackFrame<I> { /* fields omitted */ }
Represents a call stack frame.
Implementations
impl<I> StackFrame<I>
[src]
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]
&'a self,
func: F
) -> Option<R>
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]
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
Auto Trait Implementations
impl<I> !RefUnwindSafe for StackFrame<I>
impl<I> !RefUnwindSafe for StackFrame<I>
impl<I> !Send for StackFrame<I>
impl<I> !Send for StackFrame<I>
impl<I> !Sync for StackFrame<I>
impl<I> !Sync for StackFrame<I>
impl<I> Unpin for StackFrame<I> where
I: Unpin,
impl<I> Unpin for StackFrame<I> where
I: Unpin,
impl<I> !UnwindSafe for StackFrame<I>
impl<I> !UnwindSafe for StackFrame<I>