pub struct MeasureCtx<'a> {
pub style: &'a Style,
pub max_size: Option<Size>,
}Expand description
A context provided to the on_measure callback of a node.
Fields§
§style: &'a Style§max_size: Option<Size>Auto Trait Implementations§
impl<'a> Freeze for MeasureCtx<'a>
impl<'a> RefUnwindSafe for MeasureCtx<'a>
impl<'a> Send for MeasureCtx<'a>
impl<'a> Sync for MeasureCtx<'a>
impl<'a> Unpin for MeasureCtx<'a>
impl<'a> UnsafeUnpin for MeasureCtx<'a>
impl<'a> UnwindSafe for MeasureCtx<'a>
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