pub trait DnaStore: Default + Send + Sync {
    fn add_dna(&mut self, dna: DnaFile);
fn add_dnas<T: IntoIterator<Item = (DnaHash, DnaFile)> + 'static>(
        &mut self,
        dnas: T
    );
fn add_entry_def(&mut self, k: EntryDefBufferKey, entry_def: EntryDef);
fn add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
        &mut self,
        entry_defs: T
    );
fn list(&self) -> Vec<DnaHash>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn get(&self, hash: &DnaHash) -> Option<DnaFile>;
fn get_entry_def(&self, k: &EntryDefBufferKey) -> Option<EntryDef>; }
Expand description

A readable and writable store of DnaFiles and EntryDefs

Required methods

Add a DnaFile to the store

Add multiple DnaFiles to the store

fn add_entry_def(&mut self, k: EntryDefBufferKey, entry_def: EntryDef)

Add an EntryDef to the store

fn add_entry_defs<T: IntoIterator<Item = (EntryDefBufferKey, EntryDef)> + 'static>(
    &mut self,
    entry_defs: T
)

Add multiple EntryDefs to the store

List all DNAs in the store

Get a particular DnaFile

fn get_entry_def(&self, k: &EntryDefBufferKey) -> Option<EntryDef>

Get a particular EntryDef

Implementors

A readable and writable store of DnaFiles and EntryDefs