pub struct ControlFlowStack { /* private fields */ }Implementations§
Source§impl ControlFlowStack
impl ControlFlowStack
pub fn new(max_depth: usize) -> Self
pub fn push(&mut self, frame: ControlFrame) -> Result<(), EmulatorError>
pub fn pop(&mut self) -> Option<ControlFrame>
pub fn top(&self) -> Option<&ControlFrame>
pub fn top_mut(&mut self) -> Option<&mut ControlFrame>
pub fn depth(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn find_loop(&self) -> Option<&ControlFrame>
pub fn find_loop_mut(&mut self) -> Option<&mut ControlFrame>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ControlFlowStack
impl RefUnwindSafe for ControlFlowStack
impl Send for ControlFlowStack
impl Sync for ControlFlowStack
impl Unpin for ControlFlowStack
impl UnsafeUnpin for ControlFlowStack
impl UnwindSafe for ControlFlowStack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more