Struct floating_ui_core::MiddlewareState
source · 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, &'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, &'a Element>§rects: &'a ElementRects§platform: &'a dyn Platform<Element, Window>Trait Implementations§
source§impl<'a, Element, Window> Clone for MiddlewareState<'a, Element, Window>
impl<'a, Element, Window> Clone for MiddlewareState<'a, Element, Window>
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