pub trait FileFormatWriter {
// Required methods
fn write_file(&self, path: &Path) -> SisterResult<()>;
fn to_bytes(&self) -> SisterResult<Vec<u8>>;
}Expand description
File format writer trait for all sisters
Required Methods§
Sourcefn write_file(&self, path: &Path) -> SisterResult<()>
fn write_file(&self, path: &Path) -> SisterResult<()>
Write to a file path
Sourcefn to_bytes(&self) -> SisterResult<Vec<u8>>
fn to_bytes(&self) -> SisterResult<Vec<u8>>
Serialize the content to bytes