pub enum AxisStaticEdge {
Start,
Center,
End,
}Expand description
The physical alignment of an out-of-flow box’s margin box within its static-position area (per-axis).
The static position of an out-of-flow box may depend on alignment properties
(justify-content/align-self in flexbox, justify-self/align-self in grid) which cannot
be fully resolved until the box’s final size is known. To defer that resolution, the static
position is recorded as an area plus the physical alignment keyword to apply to the box’s
margin box within that area.
Variants§
Start
Align the start (left/top) edge of the box’s margin box to the start of the area
Center
Center the box within the area
End
Align the end (right/bottom) edge of the box’s margin box to the end of the area
Trait Implementations§
Source§impl Clone for AxisStaticEdge
impl Clone for AxisStaticEdge
Source§fn clone(&self) -> AxisStaticEdge
fn clone(&self) -> AxisStaticEdge
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 AxisStaticEdge
Source§impl Debug for AxisStaticEdge
impl Debug for AxisStaticEdge
impl Eq for AxisStaticEdge
Source§impl PartialEq for AxisStaticEdge
impl PartialEq for AxisStaticEdge
impl StructuralPartialEq for AxisStaticEdge
Auto Trait Implementations§
impl Freeze for AxisStaticEdge
impl RefUnwindSafe for AxisStaticEdge
impl Send for AxisStaticEdge
impl Sync for AxisStaticEdge
impl Unpin for AxisStaticEdge
impl UnsafeUnpin for AxisStaticEdge
impl UnwindSafe for AxisStaticEdge
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