pub trait Middleware<Element, Window>:
Clone
+ PartialEq
+ Dyn{
// Required methods
fn name(&self) -> &'static str;
fn compute(
&self,
state: MiddlewareState<'_, Element, Window>,
) -> MiddlewareReturn;
}
Expand description
Middleware used by compute_position
.
Required Methods§
Sourcefn compute(
&self,
state: MiddlewareState<'_, Element, Window>,
) -> MiddlewareReturn
fn compute( &self, state: MiddlewareState<'_, Element, Window>, ) -> MiddlewareReturn
Executes this middleware.
Trait Implementations§
Source§impl<Element, Window> Clone for Box<dyn Middleware<Element, Window>>
impl<Element, Window> Clone for Box<dyn Middleware<Element, Window>>
Source§fn clone(&self) -> Box<dyn Middleware<Element, Window>>
fn clone(&self) -> Box<dyn Middleware<Element, Window>>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Element, Window> PartialEq<&Box<dyn Middleware<Element, Window>>> for Box<dyn Middleware<Element, Window>>
impl<Element, Window> PartialEq<&Box<dyn Middleware<Element, Window>>> for Box<dyn Middleware<Element, Window>>
Source§impl<Element, Window> PartialEq for dyn Middleware<Element, Window>
impl<Element, Window> PartialEq for dyn Middleware<Element, Window>
Source§fn eq(&self, other: &(dyn Middleware<Element, Window> + 'static)) -> bool
fn eq(&self, other: &(dyn Middleware<Element, Window> + 'static)) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.