Skip to main content

FileFormatWriter

Trait FileFormatWriter 

Source
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§

Source

fn write_file(&self, path: &Path) -> SisterResult<()>

Write to a file path

Source

fn to_bytes(&self) -> SisterResult<Vec<u8>>

Serialize the content to bytes

Implementors§