paralegal_spdg

Trait FileSystemStorable

Source
pub trait FileSystemStorable: Sized {
    // Required methods
    fn load(path: impl AsRef<Path>) -> Result<Self, Error>;
    fn store(&self, path: impl AsRef<Path>) -> Result<(), Error>;
}

Required Methods§

Source

fn load(path: impl AsRef<Path>) -> Result<Self, Error>

Source

fn store(&self, path: impl AsRef<Path>) -> Result<(), Error>

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§