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
fn as_any(&self) -> &Any
Convert to Any, so we can then convert to the concrete type specific to this saveable
fn as_mut_any(&mut self) -> &mut Any
fn clear(&mut self)
Clears the saved state, so a restore operation is a no-op
Implementors
impl Saveable for SavedData
impl Saveable for SavedPrefetch
impl Saveable for SavedBlackDiffusion