pub enum ScrollIntrinsicMeasureMode {
Content,
Viewport,
}Variants§
Content
Default behavior: scroll measurement probes children (potentially using MaxContent on the
scroll axis when probe_unbounded is true).
Viewport
Treat the scroll container as a viewport-sized barrier in intrinsic measurement contexts.
This avoids recursively measuring large scrollable subtrees (virtualized surfaces, large tables, code views) during Min/MaxContent measurement passes.
Note: this affects only measure() / intrinsic sizing; final layout under definite
available space is unchanged.
Trait Implementations§
Source§impl Clone for ScrollIntrinsicMeasureMode
impl Clone for ScrollIntrinsicMeasureMode
Source§fn clone(&self) -> ScrollIntrinsicMeasureMode
fn clone(&self) -> ScrollIntrinsicMeasureMode
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 moreSource§impl Debug for ScrollIntrinsicMeasureMode
impl Debug for ScrollIntrinsicMeasureMode
impl Copy for ScrollIntrinsicMeasureMode
impl Eq for ScrollIntrinsicMeasureMode
impl StructuralPartialEq for ScrollIntrinsicMeasureMode
Auto Trait Implementations§
impl Freeze for ScrollIntrinsicMeasureMode
impl RefUnwindSafe for ScrollIntrinsicMeasureMode
impl Send for ScrollIntrinsicMeasureMode
impl Sync for ScrollIntrinsicMeasureMode
impl Unpin for ScrollIntrinsicMeasureMode
impl UnsafeUnpin for ScrollIntrinsicMeasureMode
impl UnwindSafe for ScrollIntrinsicMeasureMode
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