Trait WriteArchive

Source
pub trait WriteArchive {
    // Required methods
    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§

Source

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.

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§