pub enum Display {
Block,
Inline,
Flex,
Grid,
None,
}Expand description
CSS display. Defaults to Block (strict-CSS fidelity): flex layout,
gap, and flex-direction only apply under Flex.
Variants§
Block
Inline
Hugs its content and does not stretch to fill (works inside flex parents; taffy has no true inline text flow).
Flex
Grid
None
Removed from layout entirely (no space reserved).
Trait Implementations§
impl Copy for Display
impl StructuralPartialEq for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnsafeUnpin for Display
impl UnwindSafe for Display
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