pub trait ReadFrom {
    // Required method
    fn read_from(path: &Path) -> Result<Self>
       where Self: Sized;
}
Expand description

Trait for types / structures that can be read from disk, either from a file or a directory.

Required Methods§

source

fn read_from(path: &Path) -> Result<Self>where Self: Sized,

Reads the structure from the specified path, which can be either a file or a directory.

Implementations on Foreign Types§

source§

impl ReadFrom for String

source§

fn read_from(path: &Path) -> Result<Self>where Self: Sized,

source§

impl ReadFrom for Vec<u8>

source§

fn read_from(path: &Path) -> Result<Self>where Self: Sized,

source§

impl<T> ReadFrom for Option<T>where T: ReadFrom,

source§

fn read_from(path: &Path) -> Result<Self>where Self: Sized,

Implementors§