Enum style::values::generics::CounterStyleOrNone [] [src]

pub enum CounterStyleOrNone {
    None,
    Name(CustomIdent),
    Symbols(SymbolsTypeSymbols),
}

https://drafts.csswg.org/css-counter-styles/#typedef-counter-style

Since wherever is used, 'none' is a valid value as well, we combine them into one type to make code simpler.

Variants

none

<counter-style-name>

symbols()

Methods

impl CounterStyleOrNone
[src]

[src]

disc value

[src]

decimal value

Trait Implementations

impl Clone for CounterStyleOrNone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CounterStyleOrNone
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for CounterStyleOrNone
[src]

impl PartialEq for CounterStyleOrNone
[src]

[src]

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

[src]

This method tests for !=.

impl ToComputedValue for CounterStyleOrNone
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more

impl ToCss for CounterStyleOrNone
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl Parse for CounterStyleOrNone
[src]

[src]

Parse a value of this type. Read more