Enum style::values::specified::position::PositionComponent [] [src]

pub enum PositionComponent<S> {
    Center,
    Length(LengthOrPercentage),
    Side(S, Option<LengthOrPercentage>),
}

The specified value of a component of a CSS <position>.

Variants

center

<lop>

<side> <lop>?

Methods

impl<S: Parse> PositionComponent<S>
[src]

[src]

Parses a component of a CSS position, with quirks.

impl<S> PositionComponent<S>
[src]

[src]

0%

impl<S: Side> PositionComponent<S>
[src]

[src]

The initial specified value of a position component, i.e. the start side.

Trait Implementations

impl<S: Clone> Clone for PositionComponent<S>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<S: Debug> Debug for PositionComponent<S>
[src]

[src]

Formats the value using the given formatter. Read more

impl<S> MallocSizeOf for PositionComponent<S> where
    S: MallocSizeOf
[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<S: PartialEq> PartialEq for PositionComponent<S>
[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<S> ToCss for PositionComponent<S> where
    S: ToCss
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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

impl<S: Parse> Parse for PositionComponent<S>
[src]

[src]

Parse a value of this type. Read more

impl<S: Side> ToComputedValue for PositionComponent<S>
[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