LocalFrame

Struct LocalFrame 

Source
pub struct LocalFrame<'ir, B> { /* private fields */ }
Expand description

A LocalFrame is a mutable frame which is used by a currently executing thread. It is turned into an immutable Frame when the control flow forks on a choice, which can be shared by threads.

Implementations§

Source§

impl<'ir, B: BV> LocalFrame<'ir, B>

Source

pub fn vars_mut(&mut self) -> &mut Bindings<'ir, B>

Source

pub fn vars(&self) -> &Bindings<'ir, B>

Source

pub fn regs_mut(&mut self) -> &mut Bindings<'ir, B>

Source

pub fn regs(&self) -> &Bindings<'ir, B>

Source

pub fn add_regs(&mut self, regs: &Bindings<'ir, B>) -> &mut Self

Source

pub fn lets_mut(&mut self) -> &mut Bindings<'ir, B>

Source

pub fn lets(&self) -> &Bindings<'ir, B>

Source

pub fn add_lets(&mut self, lets: &Bindings<'ir, B>) -> &mut Self

Source

pub fn get_exception(&self) -> Option<(&Val<B>, &str)>

Source

pub fn memory(&self) -> &Memory<B>

Source

pub fn memory_mut(&mut self) -> &mut Memory<B>

Source

pub fn set_memory(&mut self, memory: Memory<B>) -> &mut Self

Source

pub fn new( name: Name, args: &[(Name, &'ir Ty<Name>)], vals: Option<&[Val<B>]>, instrs: &'ir [Instr<Name, B>], ) -> Self

Source

pub fn new_call( &self, name: Name, args: &[(Name, &'ir Ty<Name>)], vals: Option<&[Val<B>]>, instrs: &'ir [Instr<Name, B>], ) -> Self

Source

pub fn task_with_checkpoint<'task>( &self, task_id: usize, state: &'task TaskState<B>, checkpoint: Checkpoint<B>, ) -> Task<'ir, 'task, B>

Source

pub fn task<'task>( &self, task_id: usize, state: &'task TaskState<B>, ) -> Task<'ir, 'task, B>

Auto Trait Implementations§

§

impl<'ir, B> Freeze for LocalFrame<'ir, B>

§

impl<'ir, B> !RefUnwindSafe for LocalFrame<'ir, B>

§

impl<'ir, B> Send for LocalFrame<'ir, B>
where B: Send,

§

impl<'ir, B> Sync for LocalFrame<'ir, B>
where B: Sync,

§

impl<'ir, B> Unpin for LocalFrame<'ir, B>
where B: Unpin,

§

impl<'ir, B> !UnwindSafe for LocalFrame<'ir, B>

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.