Skip to main content

OptState

Trait OptState 

Source
pub trait OptState
where Self: Serialize + for<'de> Deserialize<'de>,
{ }
Expand description

Serializable state of an Optimizer.

Implementations should capture all information required to resume an optimization after checkpointing.

§Associated Derive Macro

The OptState derive macro automatically implements the trait for any struct satisfying the required trait bounds.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§