pub struct MiddlewareState<'a, Element: Clone + 'static, Window: Clone> {
    pub x: f64,
    pub y: f64,
    pub initial_placement: Placement,
    pub placement: Placement,
    pub strategy: Strategy,
    pub middleware_data: &'a MiddlewareData,
    pub elements: Elements<'a, Element>,
    pub rects: &'a ElementRects,
    pub platform: &'a dyn Platform<Element, Window>,
}Expand description
State passed to Middleware::compute.
Fields§
§x: f64§y: f64§initial_placement: Placement§placement: Placement§strategy: Strategy§middleware_data: &'a MiddlewareData§elements: Elements<'a, Element>§rects: &'a ElementRects§platform: &'a dyn Platform<Element, Window>Trait Implementations§
Auto Trait Implementations§
impl<'a, Element, Window> Freeze for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> !RefUnwindSafe for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> !Send for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> !Sync for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> Unpin for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> !UnwindSafe for MiddlewareState<'a, Element, Window>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more