pub enum Position {
Relative,
Absolute,
}Expand description
Whether a node takes part in normal flow.
Variants§
Relative
The node sits in normal flow. Insets move it from where the flow put it without moving its siblings, and the node becomes the containing block for its absolutely positioned children. This is the default, so an absolutely positioned child is placed against its own parent.
Absolute
The node leaves normal flow and is placed by its insets against the nearest positioned ancestor. Siblings are laid out as if it were not there.
Trait Implementations§
impl Copy for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Forget for Position
impl Freeze for Position
impl Move for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnsafeUnpin for Position
impl UnwindSafe for Position
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