[][src]Trait jagged::WriteArchive

pub trait WriteArchive {
    fn save(&self, path: &Path) -> Result<()>;
fn insert<S>(&mut self, key: S, value: Vec<u8>) -> Option<Vec<u8>>
    where
        S: Into<String>
; }

Required methods

fn save(&self, path: &Path) -> Result<()>

Writes an archive to disk with the given path. If a file is already present at the given path, it is simply overwritten.

fn insert<S>(&mut self, key: S, value: Vec<u8>) -> Option<Vec<u8>> where
    S: Into<String>, 

Inserts a key-value pair. If the archive already contains the given key, the previous value for that key is returned.

Loading content...

Implementors

impl WriteArchive for Archive[src]

Loading content...