unbase 0.0.2

Unbase intends to be a causal, coordination-free distributed data-persistence and application framework. It is fundamentally reactive, fault tolerant, and decentralized.
Documentation
use std::collections::HashMap;
use memorefhead::MemoRefHead;
use slab::*;
use subject::SubjectType;

pub struct SystemCreator;

impl SystemCreator {

    pub fn generate_root_index_seed( slab: &Slab ) -> MemoRefHead {

        let mut values = HashMap::new();
        values.insert("tier".to_string(),0.to_string());

        let memoref = slab.new_memo_basic_noparent(
            Some(slab.generate_subject_id(SubjectType::IndexNode)),
            MemoBody::FullyMaterialized {
                v: values,
                r: RelationSet::empty(),
                e: EdgeSet::empty(),
                t: SubjectType::IndexNode
            }
        );

        memoref.to_head()
    }

}