pub struct DensityMeasureScope { /* private fields */ }Expand description
The production cranpose_ui_layout::MeasureScope: a grid captured at
composition time, carried through measurement.
MeasurePolicy::measure runs with this as its scope, the way Compose’s
MeasurePolicy.measure runs with MeasureScope as its receiver. The grid
is the LayoutNode’s own
Density – read at composition time by the Layout composable from
density, not the host default – so a subtree given a different grid
through ProvideDensity is measured on that grid.
Implementations§
Trait Implementations§
Source§impl Clone for DensityMeasureScope
impl Clone for DensityMeasureScope
Source§fn clone(&self) -> DensityMeasureScope
fn clone(&self) -> DensityMeasureScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DensityMeasureScope
Source§impl Debug for DensityMeasureScope
impl Debug for DensityMeasureScope
Source§impl MeasureScope for DensityMeasureScope
impl MeasureScope for DensityMeasureScope
Source§impl PartialEq for DensityMeasureScope
impl PartialEq for DensityMeasureScope
impl StructuralPartialEq for DensityMeasureScope
Auto Trait Implementations§
impl Freeze for DensityMeasureScope
impl RefUnwindSafe for DensityMeasureScope
impl Send for DensityMeasureScope
impl Sync for DensityMeasureScope
impl Unpin for DensityMeasureScope
impl UnsafeUnpin for DensityMeasureScope
impl UnwindSafe for DensityMeasureScope
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