Skip to main content

Frame

Struct Frame 

Source
pub struct Frame<P, K, R, H>{ /* private fields */ }
Expand description

One admitted activation, composed entirely from bounded machine state.

Implementations§

Source§

impl<P, K, R, H> Frame<P, K, R, H>

Source

pub fn new( slot_limit: AdmissionLimit, operand_limit: WorkLimit, cursor: CodeCursor, continuation: Option<K>, roots: R, handlers: H, ) -> Self

Composes a frame at a validated code cursor with independently bounded storage.

Source

pub fn slots(&self) -> &SlotFile<P>

Returns the bounded local-slot file.

Source

pub fn slots_mut(&mut self) -> &mut SlotFile<P>

Returns the mutable bounded local-slot file.

Source

pub fn operands(&self) -> &UnitStack<P>

Returns the bounded operand stack.

Source

pub fn operands_mut(&mut self) -> &mut UnitStack<P>

Returns the mutable bounded operand stack.

Source

pub fn cursor(&self) -> CodeCursor

Returns the current validated instruction cursor.

Source

pub fn set_cursor(&mut self, cursor: CodeCursor)

Moves the frame to another validated instruction cursor.

Source

pub fn continuation(&self) -> Option<&K>

Returns the caller-defined continuation state.

Source

pub fn roots(&self) -> &R

Returns the caller-defined managed-root state.

Source

pub fn roots_mut(&mut self) -> &mut R

Returns the mutable caller-defined managed-root state.

Source

pub fn handlers(&self) -> &H

Returns the caller-defined handler state.

Source

pub fn handlers_mut(&mut self) -> &mut H

Returns the mutable caller-defined handler state.

Trait Implementations§

Source§

impl<P, K, R, H> MachineFrame for Frame<P, K, R, H>

Source§

fn cursor(&self) -> CodeCursor

Returns the instruction to execute next.
Source§

fn set_cursor(&mut self, cursor: CodeCursor)

Selects the next validated instruction boundary.
Source§

impl<P, K, R, H> ManagedRootSource for Frame<P, K, R, H>

Source§

fn visit_managed_roots(&self, visit: &mut dyn FnMut(ManagedId) -> bool) -> bool

Visits roots in a stable, source-defined order. Read more

Auto Trait Implementations§

§

impl<P, K, R, H> Freeze for Frame<P, K, R, H>
where R: Freeze, H: Freeze, K: Freeze,

§

impl<P, K, R, H> RefUnwindSafe for Frame<P, K, R, H>

§

impl<P, K, R, H> Send for Frame<P, K, R, H>
where R: Send, H: Send, K: Send, P: Send, <P as ValueWidthPolicy>::Value: Send,

§

impl<P, K, R, H> Sync for Frame<P, K, R, H>
where R: Sync, H: Sync, K: Sync, P: Sync, <P as ValueWidthPolicy>::Value: Sync,

§

impl<P, K, R, H> Unpin for Frame<P, K, R, H>
where R: Unpin, H: Unpin, K: Unpin, P: Unpin, <P as ValueWidthPolicy>::Value: Unpin,

§

impl<P, K, R, H> UnsafeUnpin for Frame<P, K, R, H>

§

impl<P, K, R, H> UnwindSafe for Frame<P, K, R, H>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.