pub enum ContentListItem<'a> {
String(String),
Image(Image<'a>),
AttrFunction(AttrFunction<'a>),
Contents(Ident),
Quote(Quote),
LeaderFunction(LeaderFunction),
Target(Target<'a>),
StringFunction(StringFunction),
ContentFunction(ContentFunction),
Counter(Counter<'a>),
}Expand description
https://drafts.csswg.org/css-content-3/#content-values
<content-list> = [ <string> | <image> | <attr()> | contents | <quote> | <leader()> | <target> | <string()> | <content()> | <counter> ]+Variants§
String(String)
Image(Image<'a>)
AttrFunction(AttrFunction<'a>)
Contents(Ident)
Quote(Quote)
LeaderFunction(LeaderFunction)
Target(Target<'a>)
StringFunction(StringFunction)
ContentFunction(ContentFunction)
Counter(Counter<'a>)
Trait Implementations§
Source§impl<'a> Clone for ContentListItem<'a>
impl<'a> Clone for ContentListItem<'a>
Source§fn clone(&self) -> ContentListItem<'a>
fn clone(&self) -> ContentListItem<'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 ContentListItem<'a>
impl<'a> Debug for ContentListItem<'a>
Source§impl<'a> Hash for ContentListItem<'a>
impl<'a> Hash for ContentListItem<'a>
Source§impl<'a> Ord for ContentListItem<'a>
impl<'a> Ord for ContentListItem<'a>
Source§fn cmp(&self, other: &ContentListItem<'a>) -> Ordering
fn cmp(&self, other: &ContentListItem<'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 ContentListItem<'a>
impl<'a> Parse<'a> for ContentListItem<'a>
Source§impl<'a> PartialEq for ContentListItem<'a>
impl<'a> PartialEq for ContentListItem<'a>
Source§impl<'a> PartialOrd for ContentListItem<'a>
impl<'a> PartialOrd for ContentListItem<'a>
Source§impl<'a> Peek<'a> for ContentListItem<'a>
impl<'a> Peek<'a> for ContentListItem<'a>
Source§impl<'a> ToCursors for ContentListItem<'a>
impl<'a> ToCursors for ContentListItem<'a>
fn to_cursors(&self, s: &mut impl CursorSink)
impl<'a> Eq for ContentListItem<'a>
impl<'a> StructuralPartialEq for ContentListItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContentListItem<'a>
impl<'a> !RefUnwindSafe for ContentListItem<'a>
impl<'a> !Send for ContentListItem<'a>
impl<'a> !Sync for ContentListItem<'a>
impl<'a> Unpin for ContentListItem<'a>
impl<'a> !UnwindSafe for ContentListItem<'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