pub enum Position {
Keyword(PositionKeyword),
Keywords(PositionKeyword, PositionKeyword),
Coords(LengthPercentage, LengthPercentage),
Mixed(PositionKeyword, LengthPercentage),
}Expand description
A <position> value.
Variants§
Keyword(PositionKeyword)
A single keyword (center, top, …) expanded by Lynx to
<keyword> center or center <keyword> depending on axis.
Keywords(PositionKeyword, PositionKeyword)
Two keywords, one per axis.
Coords(LengthPercentage, LengthPercentage)
Two length-percentages: horizontal then vertical.
Mixed(PositionKeyword, LengthPercentage)
A keyword followed by a length-percentage offset on the
opposite axis (top 10px).
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze 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