Enum style::properties::ShorthandId [] [src]

pub enum ShorthandId {
    Background,
    BackgroundPosition,
    BorderColor,
    BorderStyle,
    BorderWidth,
    BorderTop,
    BorderLeft,
    BorderBottom,
    BorderRight,
    BorderBlockStart,
    BorderBlockEnd,
    BorderInlineStart,
    BorderInlineEnd,
    Border,
    BorderRadius,
    BorderImage,
    Overflow,
    Transition,
    Animation,
    Columns,
    Font,
    FontVariant,
    ListStyle,
    Margin,
    Outline,
    Padding,
    FlexFlow,
    Flex,
    TextDecoration,
    All,
}

An identifier for a given shorthand property.

Variants

background

background-position

border-color

border-style

border-width

border-top

border-left

border-bottom

border-right

border-block-start

border-block-end

border-inline-start

border-inline-end

border

border-radius

border-image

overflow

transition

animation

columns

font

font-variant

list-style

margin

outline

padding

flex-flow

flex

text-decoration

all

Methods

impl ShorthandId
[src]

[src]

Get the name for this shorthand property.

Important traits for &'a mut [u8]
[src]

Get the longhand ids that form this shorthand.

[src]

Try to serialize the given declarations as this shorthand.

Returns an error if writing to the stream fails, or if the declarations do not map to a shorthand.

[src]

Finds and returns an appendable value for the given declarations.

Returns the optional appendable value.

[src]

Returns PropertyFlags for given shorthand property.

Trait Implementations

impl From<ShorthandId> for NonCustomPropertyId
[src]

[src]

Performs the conversion.

impl Clone for ShorthandId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ShorthandId
[src]

impl Debug for ShorthandId
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for ShorthandId
[src]

impl Hash for ShorthandId
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl MallocSizeOf for ShorthandId
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for ShorthandId
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl ToCss for ShorthandId
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more