pub struct LayoutContext<'a> {
pub tree: &'a BoxTree,
pub text_measure: &'a dyn TextMeasure,
pub viewport: Size,
}Expand description
Layout context passed through the layout tree.
Fields§
§tree: &'a BoxTree§text_measure: &'a dyn TextMeasure§viewport: SizeAuto Trait Implementations§
impl<'a> Freeze for LayoutContext<'a>
impl<'a> !RefUnwindSafe for LayoutContext<'a>
impl<'a> !Send for LayoutContext<'a>
impl<'a> !Sync for LayoutContext<'a>
impl<'a> Unpin for LayoutContext<'a>
impl<'a> !UnwindSafe for LayoutContext<'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