Skip to main content

UserState

Trait UserState 

Source
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§

Required Methods§

Source

fn progress(&self) -> Progress<Self::Float>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§