[][src]Struct atomic_lib::store::Store

pub struct Store { /* fields omitted */ }

The in-memory store of data, containing the Resources, Properties and Classes

Implementations

impl Store[src]

pub fn init() -> AtomicResult<Store>[src]

Creates an empty Store. Run .populate() to get useful standard models loaded into your store.

pub fn read_store_from_file(&self, path: &PathBuf) -> AtomicResult<()>[src]

Reads an .ad3 (Atomic Data Triples) graph and adds it to the store

pub fn write_store_to_disk(&self, path: &PathBuf) -> AtomicResult<()>[src]

Serializes the current store and saves to path

Trait Implementations

impl Clone for Store[src]

impl Storelike for Store[src]

pub fn add_resource(&self, resource: &Resource) -> AtomicResult<()>[src]

Adds a Resource to the store. Replaces existing resource with the contents. In most cases, you should use .commit() instead.

Auto Trait Implementations

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,