[][src]Trait arctk::file::save::Save

pub trait Save {
    pub fn save_data(&self, path: &Path) -> Result<(), Error>;

    pub fn save(&self, path: &Path) -> Result<(), Error> { ... }
}

Types implementing this trait can be saved to file.

Required methods

pub fn save_data(&self, path: &Path) -> Result<(), Error>[src]

Serialise the type to a given file

Errors

if the instance can not be serialised or if the file can't be written to.

Loading content...

Provided methods

pub fn save(&self, path: &Path) -> Result<(), Error>[src]

Report the saving of a file (if it is a filepath) and save the data.

Errors

if the instance can not be serialised or if the file can't be written to.

Loading content...

Implementors

impl Save for Histogram[src]

impl<T: Display> Save for Table<T>[src]

impl<T: Serialize> Save for Redirect<T>[src]

Loading content...