pub trait LimiterFactory<Element: Clone + 'static, Window: Clone + 'static>:
Clone
+ PartialEq
+ Sized
+ 'static {
// Required method
fn compute(&self, state: MiddlewareState<'_, Element, Window>) -> Coords;
}
Expand description
Limiter used by Shift
middleware. Limits the shifting done in order to prevent detachment.
Required Methods§
fn compute(&self, state: MiddlewareState<'_, Element, Window>) -> Coords
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.