[][src]Struct mech_core::Core

pub struct Core {
    pub id: u64,
    pub epoch: usize,
    pub offset: usize,
    pub round: usize,
    pub changes: usize,
    pub store: Interner,
    pub runtime: Runtime,
    pub change_capacity: usize,
    pub table_capacity: usize,
    pub input: HashSet<Register>,
    pub output: HashSet<Register>,
    pub paused: bool,
    // some fields omitted
}

Fields

id: u64epoch: usizeoffset: usizeround: usizechanges: usizestore: Internerruntime: Runtimechange_capacity: usizetable_capacity: usizeinput: HashSet<Register>output: HashSet<Register>paused: bool

Methods

impl Core[src]

pub fn new(change_capacity: usize, table_capacity: usize) -> Core[src]

pub fn clear(&mut self)[src]

pub fn register_blocks(&mut self, blocks: Vec<Block>)[src]

pub fn remove_block(&mut self, block_id: &usize)[src]

pub fn last_transaction(&self) -> usize[src]

pub fn this_transaction(&self) -> usize[src]

pub fn step(&mut self)[src]

pub fn index(
    &mut self,
    table: u64,
    row: &Index,
    column: &Index
) -> Option<&Value>
[src]

pub fn step_backward(&mut self, steps: usize)[src]

pub fn step_back_one(&mut self)[src]

pub fn step_forward(&mut self, steps: usize)[src]

pub fn set_time(&mut self, time: usize)[src]

pub fn step_forward_one(&mut self)[src]

pub fn resume(&mut self)[src]

pub fn pause(&mut self)[src]

pub fn process_transaction(&mut self, txn: &Transaction)[src]

pub fn capacity(&self) -> f64[src]

Trait Implementations

impl Debug for Core[src]

Auto Trait Implementations

impl RefUnwindSafe for Core

impl Send for Core

impl Sync for Core

impl Unpin for Core

impl UnwindSafe for Core

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.