#[repr(C)]pub enum MeasureDomMode {
Extent = 0,
ShrinkToFit = 1,
}Expand description
Which question a MeasureDomFn answers about a DOM.
Variants§
Extent = 0
Lay the DOM out against the given box and report the union of every node’s bounds. A block root stretches to the box’s width, so this reports the box’s width for any block content - the right answer for “how tall is this item at this width”.
ShrinkToFit = 1
Lay the DOM out at its own max-content width (no wider than the given box) and report that - “how big does this content want to be”, the answer a label or a popup needs.
Trait Implementations§
Source§impl Clone for MeasureDomMode
impl Clone for MeasureDomMode
Source§fn clone(&self) -> MeasureDomMode
fn clone(&self) -> MeasureDomMode
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 MeasureDomMode
Source§impl Debug for MeasureDomMode
impl Debug for MeasureDomMode
impl Eq for MeasureDomMode
Source§impl Hash for MeasureDomMode
impl Hash for MeasureDomMode
Source§impl PartialEq for MeasureDomMode
impl PartialEq for MeasureDomMode
impl StructuralPartialEq for MeasureDomMode
Auto Trait Implementations§
impl Freeze for MeasureDomMode
impl RefUnwindSafe for MeasureDomMode
impl Send for MeasureDomMode
impl Sync for MeasureDomMode
impl Unpin for MeasureDomMode
impl UnsafeUnpin for MeasureDomMode
impl UnwindSafe for MeasureDomMode
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