pub struct LayoutMeasurements { /* private fields */ }Expand description
Result of running the measure pass for a Compose layout tree.
Implementations§
Source§impl LayoutMeasurements
impl LayoutMeasurements
pub fn semantics_tree(&self) -> &SemanticsTree
Sourcepub fn into_layout_tree(self) -> LayoutTree
pub fn into_layout_tree(self) -> LayoutTree
Consumes the measurements and produces a LayoutTree.
Sourcepub fn layout_tree(&self) -> LayoutTree
pub fn layout_tree(&self) -> LayoutTree
Returns a borrowed LayoutTree for rendering.
Trait Implementations§
Source§impl Clone for LayoutMeasurements
impl Clone for LayoutMeasurements
Source§fn clone(&self) -> LayoutMeasurements
fn clone(&self) -> LayoutMeasurements
Returns a duplicate 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 Freeze for LayoutMeasurements
impl !RefUnwindSafe for LayoutMeasurements
impl !Send for LayoutMeasurements
impl !Sync for LayoutMeasurements
impl Unpin for LayoutMeasurements
impl !UnwindSafe for LayoutMeasurements
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