pub trait LinearPersistence<U> {
    fn read(&mut self) -> Result<U, ConfigReadError>;
    fn write(&mut self, u: U) -> Result<(), PersistenceError>;
    fn verify_eof(&mut self) -> Result<(), ConfigReadError>;
}
Expand description

Trait to define an implementation to persist the model in a flat data structure

Required Methods

Read to restore the persisted model

Errors

This function may return the following errors

Write to persist model information

Arguments
  • u - Weight value
Errors

This function may return the following errors

Has the read position of the persisted information reached EOF?

Errors

This function may return the following errors

Implementors