pub enum PositionKind {
Relative,
Absolute,
Fixed,
Sticky,
}Expand description
The position keyword. Lynx does not support static — the
default in Lynx is relative, so a static value is meaningless
and is omitted from this enum.
Variants§
Relative
relative — positioned with normal flow as origin (default).
Absolute
absolute — positioned with the containing block as origin.
Fixed
fixed — positioned with the viewport as origin.
Sticky
sticky — switches between relative and fixed based on
scroll position.
Trait Implementations§
Source§impl Clone for PositionKind
impl Clone for PositionKind
Source§fn clone(&self) -> PositionKind
fn clone(&self) -> PositionKind
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 PositionKind
Source§impl Debug for PositionKind
impl Debug for PositionKind
impl Eq for PositionKind
Source§impl Hash for PositionKind
impl Hash for PositionKind
Source§impl PartialEq for PositionKind
impl PartialEq for PositionKind
Source§fn eq(&self, other: &PositionKind) -> bool
fn eq(&self, other: &PositionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PositionKind
Auto Trait Implementations§
impl Freeze for PositionKind
impl RefUnwindSafe for PositionKind
impl Send for PositionKind
impl Sync for PositionKind
impl Unpin for PositionKind
impl UnsafeUnpin for PositionKind
impl UnwindSafe for PositionKind
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