pub enum Display {
Block,
Flex,
Grid,
None,
}
Expand description
Sets the layout used for the children of this node
The default values depends on on which feature flags are enabled. The order of precedence is: Flex, Grid, Block, None.
Variants§
Block
The children will follow the block layout algorithm
Flex
The children will follow the flexbox layout algorithm
Grid
The children will follow the CSS Grid layout algorithm
None
The children will not be laid out, and will follow absolute positioning
Implementations§
Trait Implementations§
impl Copy for Display
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)