pub trait UserState {
type Float: TrellisFloat;
// Required method
fn progress(&self) -> Progress<Self::Float>;
// Provided method
fn is_initialised(&self) -> bool { ... }
}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
Required Methods§
Provided Methods§
fn is_initialised(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".