Struct style::stylesheets::origin::PerOrigin [] [src]

pub struct PerOrigin<T> {
    pub user_agent: T,
    pub user: T,
    pub author: T,
}

An object that stores a T for each origin of the CSS cascade.

Fields

Data for Origin::UserAgent.

Data for Origin::User.

Data for Origin::Author.

Methods

impl<T> PerOrigin<T>
[src]

Important traits for &'a mut W
[src]

Returns a reference to the per-origin data for the specified origin.

Important traits for &'a mut W
[src]

Returns a mutable reference to the per-origin data for the specified origin.

Important traits for PerOriginIter<'a, T>
[src]

Iterates over references to per-origin extra style data, from highest level (author) to lowest (user agent).

Important traits for PerOriginIter<'a, T>
[src]

Iterates over references to per-origin extra style data, from lowest level (user agent) to highest (author).

Important traits for PerOriginIterMut<'a, T>
[src]

Iterates over mutable references to per-origin extra style data, from highest level (author) to lowest (user agent).

Trait Implementations

impl<T: Debug> Debug for PerOrigin<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Default> Default for PerOrigin<T>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T> MallocSizeOf for PerOrigin<T> where
    T: 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