pub enum PositionTryOrderStyleValue {
Normal(Ident),
TrySize(TrySize),
}Expand description
Represents the style value for position-try-order as defined in css-anchor-position-2.
Anchor positioning places an element based on the position of another element. For example, you can place a tooltip next to the content it references.
The grammar is defined as:
normal | <try-size>Variants§
Trait Implementations§
Source§impl Clone for PositionTryOrderStyleValue
impl Clone for PositionTryOrderStyleValue
Source§fn clone(&self) -> PositionTryOrderStyleValue
fn clone(&self) -> PositionTryOrderStyleValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PositionTryOrderStyleValue
impl Debug for PositionTryOrderStyleValue
Source§impl Hash for PositionTryOrderStyleValue
impl Hash for PositionTryOrderStyleValue
Source§impl Ord for PositionTryOrderStyleValue
impl Ord for PositionTryOrderStyleValue
Source§fn cmp(&self, other: &PositionTryOrderStyleValue) -> Ordering
fn cmp(&self, other: &PositionTryOrderStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for PositionTryOrderStyleValue
impl<'a> Parse<'a> for PositionTryOrderStyleValue
Source§impl PartialOrd for PositionTryOrderStyleValue
impl PartialOrd for PositionTryOrderStyleValue
Source§impl<'a> Peek<'a> for PositionTryOrderStyleValue
impl<'a> Peek<'a> for PositionTryOrderStyleValue
Source§impl ToCursors for PositionTryOrderStyleValue
impl ToCursors for PositionTryOrderStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for PositionTryOrderStyleValue
impl StructuralPartialEq for PositionTryOrderStyleValue
Auto Trait Implementations§
impl Freeze for PositionTryOrderStyleValue
impl RefUnwindSafe for PositionTryOrderStyleValue
impl Send for PositionTryOrderStyleValue
impl Sync for PositionTryOrderStyleValue
impl Unpin for PositionTryOrderStyleValue
impl UnwindSafe for PositionTryOrderStyleValue
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