pub struct AxisStaticAlign {
pub keyword: AxisStaticEdge,
pub safety: AlignmentSafety,
pub fallback: AxisStaticEdge,
}Expand description
The alignment to apply to an out-of-flow box’s margin box within its static-position area in a single axis.
Keywords are physical: container-specific semantics (justify-content/align-self
resolution, flex-direction/wrap-reverse reversal, RTL flipping, self-start/self-end)
are resolved by the emitting layout algorithm.
Fields§
§keyword: AxisStaticEdgeThe physical alignment keyword
safety: AlignmentSafetyThe safe overflow-position keyword from CSS Box Alignment: when Safe, the
fallback keyword is used instead if the box’s margin box overflows the area
fallback: AxisStaticEdgeThe physical alignment keyword to fall back to when safety is Safe and the box’s
margin box overflows the area
Implementations§
Source§impl AxisStaticAlign
impl AxisStaticAlign
Sourcepub const fn from_keyword(keyword: AxisStaticEdge) -> Self
pub const fn from_keyword(keyword: AxisStaticEdge) -> Self
Create a AxisStaticAlign from a keyword with no safe fallback
Trait Implementations§
Source§impl Clone for AxisStaticAlign
impl Clone for AxisStaticAlign
Source§fn clone(&self) -> AxisStaticAlign
fn clone(&self) -> AxisStaticAlign
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 AxisStaticAlign
Source§impl Debug for AxisStaticAlign
impl Debug for AxisStaticAlign
impl Eq for AxisStaticAlign
Source§impl PartialEq for AxisStaticAlign
impl PartialEq for AxisStaticAlign
impl StructuralPartialEq for AxisStaticAlign
Auto Trait Implementations§
impl Freeze for AxisStaticAlign
impl RefUnwindSafe for AxisStaticAlign
impl Send for AxisStaticAlign
impl Sync for AxisStaticAlign
impl Unpin for AxisStaticAlign
impl UnsafeUnpin for AxisStaticAlign
impl UnwindSafe for AxisStaticAlign
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