Struct hvmc::run::Net

source ·
pub struct Net<'a> {
    pub tid: usize,
    pub tids: usize,
    pub heap: Heap<'a>,
    pub rdex: Vec<(Ptr, Ptr)>,
    pub locs: Vec<Loc>,
    pub area: Area,
    pub next: usize,
    pub rwts: Rewrites,
}

Fields§

§tid: usize§tids: usize§heap: Heap<'a>§rdex: Vec<(Ptr, Ptr)>§locs: Vec<Loc>§area: Area§next: usize§rwts: Rewrites

Implementations§

source§

impl<'a> Net<'a>

source

pub fn call_native(&mut self, book: &Book, ptr: Ptr, x: Ptr) -> bool

source§

impl<'a> Net<'a>

source

pub fn new(data: &'a Data) -> Self

source

pub fn boot(&mut self, root_id: Val)

source

pub fn rewrites(&self) -> usize

source

pub fn alloc(&mut self, size: usize) -> Loc

source

pub fn get_target(&self, ptr: Ptr) -> Ptr

source

pub fn set_target(&mut self, ptr: Ptr, val: Ptr)

source

pub fn swap_target(&self, ptr: Ptr, value: Ptr) -> Ptr

source

pub fn take_target(&self, ptr: Ptr) -> Ptr

source

pub fn cas_target( &self, ptr: Ptr, expected: Ptr, value: Ptr ) -> Result<Ptr, Ptr>

source

pub fn redux(&mut self, a: Ptr, b: Ptr)

source

pub fn get(&self, a: Trg) -> Ptr

source

pub fn swap(&self, a: Trg, val: Ptr) -> Ptr

source

pub fn linker(&mut self, a_ptr: Ptr, b_ptr: Ptr)

source

pub fn atomic_linker(&mut self, a_ptr: Ptr, a_dir: Ptr, b_ptr: Ptr)

source

pub fn atomic_linker_pri(&mut self, a_ptr: Ptr, a_dir: Ptr, b_ptr: Ptr)

source

pub fn atomic_linker_var(&mut self, a_ptr: Ptr, a_dir: Ptr, b_ptr: Ptr)

source

pub fn interact(&mut self, book: &Book, a: Ptr, b: Ptr)

source

pub fn anni(&mut self, a: Ptr, b: Ptr)

source

pub fn comm(&mut self, a: Ptr, b: Ptr)

source

pub fn era2(&mut self, a: Ptr)

source

pub fn era1(&mut self, a: Ptr)

source

pub fn pass(&mut self, a: Ptr, b: Ptr)

source

pub fn copy(&mut self, a: Ptr, b: Ptr)

source

pub fn mtch(&mut self, a: Ptr, b: Ptr)

source

pub fn op2n(&mut self, a: Ptr, b: Ptr)

source

pub fn op1n(&mut self, a: Ptr, b: Ptr)

source

pub fn op(&self, op: Lab, a: Val, b: Val) -> Val

source

pub fn call(&mut self, book: &Book, ptr: Ptr, trg: Ptr)

source

pub fn reduce(&mut self, book: &Book, limit: usize) -> usize

source

pub fn expand(&mut self, book: &Book)

source

pub fn normal(&mut self, book: &Book)

source

pub fn fork(&self, tid: usize, tids: usize) -> Self

source

pub fn parallel_normal(&mut self, book: &Book)

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Net<'a>

§

impl<'a> Send for Net<'a>

§

impl<'a> Sync for Net<'a>

§

impl<'a> Unpin for Net<'a>

§

impl<'a> UnwindSafe for Net<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.