Struct style::shared_lock::StylesheetGuards
[−]
[src]
pub struct StylesheetGuards<'a> { pub author: &'a SharedRwLockReadGuard<'a>, pub ua_or_user: &'a SharedRwLockReadGuard<'a>, }
Guards for a document
Fields
For author-origin stylesheets.
ua_or_user: &'a SharedRwLockReadGuard<'a>
For user-agent-origin and user-origin stylesheets
Methods
impl<'a> StylesheetGuards<'a>
[src]
pub fn for_origin(&self, origin: Origin) -> &SharedRwLockReadGuard<'a>
[src]
Get the guard for a given stylesheet origin.
pub fn same(guard: &'a SharedRwLockReadGuard<'a>) -> Self
[src]
Same guard for all origins
Trait Implementations
impl<'a> Clone for StylesheetGuards<'a>
[src]
fn clone(&self) -> StylesheetGuards<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more