pub struct LayoutTelemetryHooks { /* private fields */ }Implementations§
Source§impl LayoutTelemetryHooks
impl LayoutTelemetryHooks
Sourcepub fn on_layout_solve<F>(self, f: F) -> Self
pub fn on_layout_solve<F>(self, f: F) -> Self
Attach a callback for flex layout solve events.
Sourcepub fn on_grid_solve<F>(self, f: F) -> Self
pub fn on_grid_solve<F>(self, f: F) -> Self
Attach a callback for grid layout solve events.
Sourcepub fn on_overflow<F>(self, f: F) -> Self
pub fn on_overflow<F>(self, f: F) -> Self
Attach a callback for layout overflow detection.
Sourcepub fn on_underflow<F>(self, f: F) -> Self
pub fn on_underflow<F>(self, f: F) -> Self
Attach a callback for layout underflow detection.
Sourcepub fn fire_layout_solve(&self, record: &LayoutRecord)
pub fn fire_layout_solve(&self, record: &LayoutRecord)
Fire the layout solve callback if attached.
Sourcepub fn fire_grid_solve(&self, record: &GridLayoutRecord)
pub fn fire_grid_solve(&self, record: &GridLayoutRecord)
Fire the grid solve callback if attached.
Sourcepub fn fire_overflow(&self, record: &LayoutRecord)
pub fn fire_overflow(&self, record: &LayoutRecord)
Fire the overflow callback if attached.
Sourcepub fn fire_underflow(&self, record: &LayoutRecord)
pub fn fire_underflow(&self, record: &LayoutRecord)
Fire the underflow callback if attached.
Trait Implementations§
Source§impl Debug for LayoutTelemetryHooks
impl Debug for LayoutTelemetryHooks
Auto Trait Implementations§
impl Freeze for LayoutTelemetryHooks
impl !RefUnwindSafe for LayoutTelemetryHooks
impl Send for LayoutTelemetryHooks
impl Sync for LayoutTelemetryHooks
impl Unpin for LayoutTelemetryHooks
impl !UnwindSafe for LayoutTelemetryHooks
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