Trait floating_ui_core::MiddlewareFactory

source ·
pub trait MiddlewareFactory<Element: Clone + 'static, Window: Clone + 'static>:
    Clone
    + PartialEq
    + Sized
    + 'static {
    // Required methods
    fn name(&self) -> &'static str;
    fn compute(
        &self,
        state: MiddlewareState<'_, Element, Window>,
    ) -> MiddlewareReturn;
}
Expand description

Middleware used by compute_position.

Required Methods§

source

fn name(&self) -> &'static str

The name of this middleware.

source

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

Executes this middleware.

Object Safety§

This trait is not object safe.

Implementors§