Skip to main content

UserState

Trait UserState 

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

Provided Methods§

Source

fn is_initialised(&self) -> bool

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§