paralegal_non_rustc_utils

Trait FileSystemStorable

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

Required Methods§

Source

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

Source

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

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§