Struct rant::runtime::StackFrame
source · [−]pub struct StackFrame<I> { /* private fields */ }
Expand description
Represents a call stack frame.
Implementations
sourceimpl<I> StackFrame<I>
impl<I> StackFrame<I>
sourcepub fn flavor(&self) -> StackFrameFlavor
pub fn flavor(&self) -> StackFrameFlavor
Gets the flavor of the frame.
pub fn output(&self) -> &OutputWriter
pub fn output_mut(&mut self) -> &mut OutputWriter
pub fn render_and_reset_output(&mut self) -> RantValue
pub fn origin(&self) -> &Rc<RantProgramInfo>
pub fn debug_cursor(&self) -> (usize, usize)
pub fn origin_name(&self) -> &str
sourcepub fn push_intent(&mut self, intent: I)
pub fn push_intent(&mut self, intent: I)
Pushes an intent to the top of the intent stack.
sourcepub fn set_debug_info(&mut self, info: &DebugInfo)
pub fn set_debug_info(&mut self, info: &DebugInfo)
Writes debug information to the current frame to be used in stack trace generation.
sourceimpl<I> StackFrame<I>
impl<I> StackFrame<I>
sourcepub fn write_frag(&mut self, frag: &str)
pub fn write_frag(&mut self, frag: &str)
Writes a fragment to the frame’s output.
sourcepub fn into_output(self) -> RantValue
pub fn into_output(self) -> RantValue
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> !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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more