Trait lt_fm_index::IO [−][src]
pub trait IO: Serialize + DeserializeOwned {
fn write_to_file(&self, file_path: &str) -> Result<()> { ... }
fn read_from_file(file_path: &str) -> Result<Self> { ... }
fn write_to<W>(&self, writer: W) -> Result<()>
where
W: Write,
{ ... }
fn read_from<R>(reader: R) -> Result<Self>
where
R: Read,
{ ... }
}
Expand description
Trait for write and read
All LtFmIndex in crate::use_case have this trait
Provided methods
fn write_to_file(&self, file_path: &str) -> Result<()>
fn write_to_file(&self, file_path: &str) -> Result<()>
Write to file
fn read_from_file(file_path: &str) -> Result<Self>
fn read_from_file(file_path: &str) -> Result<Self>
Read from file