pub enum AnchorScopeStyleValue<'a> {
None(Ident),
All(Ident),
DashedIdents(CommaSeparated<'a, DashedIdent>),
}Expand description
Represents the style value for anchor-scope 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:
none | all | <dashed-ident>#Variants§
Trait Implementations§
Source§impl<'a> Clone for AnchorScopeStyleValue<'a>
impl<'a> Clone for AnchorScopeStyleValue<'a>
Source§fn clone(&self) -> AnchorScopeStyleValue<'a>
fn clone(&self) -> AnchorScopeStyleValue<'a>
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<'a> Debug for AnchorScopeStyleValue<'a>
impl<'a> Debug for AnchorScopeStyleValue<'a>
Source§impl<'a> Hash for AnchorScopeStyleValue<'a>
impl<'a> Hash for AnchorScopeStyleValue<'a>
Source§impl<'a> Ord for AnchorScopeStyleValue<'a>
impl<'a> Ord for AnchorScopeStyleValue<'a>
Source§fn cmp(&self, other: &AnchorScopeStyleValue<'a>) -> Ordering
fn cmp(&self, other: &AnchorScopeStyleValue<'a>) -> 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 AnchorScopeStyleValue<'a>
impl<'a> Parse<'a> for AnchorScopeStyleValue<'a>
Source§impl<'a> PartialEq for AnchorScopeStyleValue<'a>
impl<'a> PartialEq for AnchorScopeStyleValue<'a>
Source§impl<'a> PartialOrd for AnchorScopeStyleValue<'a>
impl<'a> PartialOrd for AnchorScopeStyleValue<'a>
Source§impl<'a> Peek<'a> for AnchorScopeStyleValue<'a>
impl<'a> Peek<'a> for AnchorScopeStyleValue<'a>
Source§impl<'a> ToCursors for AnchorScopeStyleValue<'a>
impl<'a> ToCursors for AnchorScopeStyleValue<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
impl<'a> Eq for AnchorScopeStyleValue<'a>
impl<'a> StructuralPartialEq for AnchorScopeStyleValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for AnchorScopeStyleValue<'a>
impl<'a> !RefUnwindSafe for AnchorScopeStyleValue<'a>
impl<'a> !Send for AnchorScopeStyleValue<'a>
impl<'a> !Sync for AnchorScopeStyleValue<'a>
impl<'a> Unpin for AnchorScopeStyleValue<'a>
impl<'a> !UnwindSafe for AnchorScopeStyleValue<'a>
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