pub trait UserState {
type Float: TrellisFloat;
// Provided methods
fn is_initialised(&self) -> bool { ... }
fn progress(&self) -> Option<Progress<Self::Float>> { ... }
}Expand description
The user-defined state must implement this trait to be used as part of the trellis calculation loop
All other state methods are auto-implemented on a type wrapping the user-defined state.
Required Associated Types§
type Float: TrellisFloat
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".