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
user_agent: T
Data for Origin::UserAgent
.
user: T
Data for Origin::User
.
Data for Origin::Author
.
Methods
impl<T> PerOrigin<T>
[src]
ⓘImportant traits for &'a mut Wpub fn borrow_for_origin(&self, origin: &Origin) -> &T
[src]
Returns a reference to the per-origin data for the specified origin.
ⓘImportant traits for &'a mut Wpub fn borrow_mut_for_origin(&mut self, origin: &Origin) -> &mut T
[src]
Returns a mutable reference to the per-origin data for the specified origin.
ⓘImportant traits for PerOriginIter<'a, T>pub fn iter_origins(&self) -> PerOriginIter<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>pub fn iter_origins_rev(&self) -> PerOriginIter<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>pub fn iter_mut_origins(&mut self) -> PerOriginIterMut<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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Default> Default for PerOrigin<T>
[src]
impl<T> MallocSizeOf for PerOrigin<T> where
T: MallocSizeOf,
[src]
T: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more