Type Alias ContentItem

Source
pub type ContentItem = GenericContentItem<Image>;
Expand description

A computed content item.

Aliased Type§

#[repr(u8)]
pub enum ContentItem { String(OwnedStr), Counter(CustomIdent, T), Counters(CustomIdent, OwnedStr, T), OpenQuote, CloseQuote, NoOpenQuote, NoCloseQuote, Attr(Attr), Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>), }

Variants§

§

String(OwnedStr)

Literal string content.

§

Counter(CustomIdent, T)

counter(name, style).

§

Counters(CustomIdent, OwnedStr, T)

counters(name, separator, style).

§

OpenQuote

open-quote.

§

CloseQuote

close-quote.

§

NoOpenQuote

no-open-quote.

§

NoCloseQuote

no-close-quote.

§

Attr(Attr)

attr([namespace? |]? ident)

§

Image(GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<CSSPixelLength>, NonNegative<LengthPercentage>, GenericPosition<LengthPercentage, LengthPercentage>, Angle, AngleOrPercentage, GenericColor<Percentage>>, ComputedUrl, GenericColor<Percentage>, Percentage, Resolution>)

image-set(url) | url(url)