pub struct MiddlewareState<'a, Element, Window>{
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§
Source§impl<Element, Window> Clone for MiddlewareState<'_, Element, Window>
impl<Element, Window> Clone for MiddlewareState<'_, Element, Window>
Source§fn clone(&self) -> MiddlewareState<'_, Element, Window>
fn clone(&self) -> MiddlewareState<'_, Element, Window>
Returns a copy 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 moreAuto 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