pub trait SelectionIndicatorController: Copy {
type State: Default + Copy;
// Required methods
fn update_target(&self, state: &mut Self::State, y: i32);
fn jump_to_target(&self, state: &mut Self::State);
fn offset(&self, state: &Self::State) -> i32;
fn update(&self, state: &mut Self::State);
}
Required Associated Types§
Required Methods§
fn update_target(&self, state: &mut Self::State, y: i32)
fn jump_to_target(&self, state: &mut Self::State)
fn offset(&self, state: &Self::State) -> i32
fn update(&self, state: &mut Self::State)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.