Struct rant::runtime::StackFrame [−][src]
Represents a call stack frame.
Implementations
impl StackFrame
[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: Intent)
[src]
Pushes an intent to the front of the queue so that it is handled next.
pub fn push_intent_back(&mut self, intent: Intent)
[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 StackFrame
[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 render_output_value(&mut self) -> Option<RantValue>
[src]
Consumes the frame’s output and returns the final value generated by it.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StackFrame
impl !Send for StackFrame
impl !Sync for StackFrame
impl Unpin for StackFrame
impl !UnwindSafe for StackFrame
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,
pub 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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.
pub 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>,