pub type Content = GenericContent<Image>;
Expand description
The specified value for the content
property.
Aliased Type§
enum Content {
Normal,
None,
Items(OwnedSlice<GenericContentItem<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>>>),
}
Variants§
Normal
normal
reserved keyword.
None
none
reserved keyword.
Items(OwnedSlice<GenericContentItem<GenericImage<GenericGradient<LineDirection, LengthPercentage, NonNegative<Length>, NonNegative<LengthPercentage>, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>, Angle, AngleOrPercentage, Color>, CssUrl, Color, Percentage, Resolution>>>)
Content items.
Implementations§
source§impl Content
impl Content
fn parse_counter_style( _: &ParserContext<'_>, input: &mut Parser<'_, '_> ) -> ListStyleType
Trait Implementations§
source§impl<Image: Clone> Clone for GenericContent<Image>
impl<Image: Clone> Clone for GenericContent<Image>
source§fn clone(&self) -> GenericContent<Image>
fn clone(&self) -> GenericContent<Image>
Returns a copy 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<Image: Debug> Debug for GenericContent<Image>
impl<Image: Debug> Debug for GenericContent<Image>
source§impl<Image> MallocSizeOf for GenericContent<Image>where
Image: MallocSizeOf,
impl<Image> MallocSizeOf for GenericContent<Image>where Image: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Parse for Content
impl Parse for Content
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't> ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
source§impl<Image: PartialEq> PartialEq<GenericContent<Image>> for GenericContent<Image>
impl<Image: PartialEq> PartialEq<GenericContent<Image>> for GenericContent<Image>
source§fn eq(&self, other: &GenericContent<Image>) -> bool
fn eq(&self, other: &GenericContent<Image>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Image> SpecifiedValueInfo for GenericContent<Image>where
Image: SpecifiedValueInfo,
impl<Image> SpecifiedValueInfo for GenericContent<Image>where Image: SpecifiedValueInfo,
source§const SUPPORTED_TYPES: u8 = _
const SUPPORTED_TYPES: u8 = _
Supported CssTypes by the given value type. Read more
source§impl<Image> ToComputedValue for GenericContent<Image>where
Image: ToComputedValue,
impl<Image> ToComputedValue for GenericContent<Image>where Image: ToComputedValue,
§type ComputedValue = GenericContent<<Image as ToComputedValue>::ComputedValue>
type ComputedValue = GenericContent<<Image as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.