pub trait Limiter<Element, Window>: Debug + DynClone {
    // 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§

source

fn compute(&self, state: MiddlewareState<'_, Element, Window>) -> Coords

Implementors§

source§

impl<Element, Window> Limiter<Element, Window> for DefaultLimiter