Trait floating_ui_core::middleware::LimiterFactory
source · 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
Object Safety§
This trait is not object safe.