[−][src]Struct rant::runtime::StackFrame
Represents a call stack frame.
Implementations
impl StackFrame
[src]
pub fn new(
sequence: Rc<Sequence>,
has_output: bool,
prev_output: Option<&OutputWriter>
) -> Self
[src]
sequence: Rc<Sequence>,
has_output: bool,
prev_output: Option<&OutputWriter>
) -> Self
pub fn new_empty(
func: Box<dyn FnOnce(&mut VM<'_>) -> RuntimeResult<()>>,
has_output: bool,
prev_output: Option<&OutputWriter>,
origin: Rc<RantProgramInfo>,
debug_pos: (usize, usize),
flavor: StackFrameFlavor
) -> Self
[src]
func: Box<dyn FnOnce(&mut VM<'_>) -> RuntimeResult<()>>,
has_output: bool,
prev_output: Option<&OutputWriter>,
origin: Rc<RantProgramInfo>,
debug_pos: (usize, usize),
flavor: StackFrameFlavor
) -> Self
pub fn with_flavor(self, flavor: StackFrameFlavor) -> Self
[src]
impl StackFrame
[src]
pub fn seq_next(&mut self) -> Option<Rc<Rst>>
[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 take_intent(&mut self) -> Option<Intent>
[src]
Takes the next intent to be handled.
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]
pub fn use_output<'a, F: FnOnce(&'a OutputWriter) -> R, R>(
&'a self,
func: F
) -> Option<R>
[src]
&'a self,
func: F
) -> Option<R>
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]
pub fn write_ws(&mut self, ws: &str)
[src]
pub fn write_value(&mut self, val: RantValue)
[src]
pub fn render_output_value(&mut self) -> Option<RantValue>
[src]
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,
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.
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>,