Trait quantmath::risk::Saveable[][src]

pub trait Saveable: Any {
    fn as_any(&self) -> &Any;
fn as_mut_any(&mut self) -> &mut Any;
fn clear(&mut self); }

Interface that defines how market data or derived data can save itself during a bump, so it can restore itself later. The interface is largely a placeholder, as the means of save/restore are specific to the data.

Required Methods

Convert to Any, so we can then convert to the concrete type specific to this saveable

Clears the saved state, so a restore operation is a no-op

Implementors