[][src]Struct mech::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, RandomState>,
    pub output: HashSet<Register, RandomState>,
    pub paused: bool,
    pub remote_tables: Vec<Arc<Table>>,
    // some fields omitted
}

Fields

id: u64epoch: usizeoffset: usizeround: usizechanges: usizestore: Internerruntime: Runtimechange_capacity: usizetable_capacity: usizeinput: HashSet<Register, RandomState>output: HashSet<Register, RandomState>paused: boolremote_tables: Vec<Arc<Table>>

Methods

impl Core[src]

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

pub fn clear(&mut self)[src]

pub fn get_table(&mut self, table_name: String) -> Option<&Rc<RefCell<Table>>>[src]

pub fn get_table_by_id(
    &mut self,
    table_id: &TableId
) -> Option<&Rc<RefCell<Table>>>
[src]

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

pub fn register_table(&mut self, table: Table)[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 Clone for Core[src]

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,