Struct style::stylesheets::MediaRule
[−]
[src]
pub struct MediaRule { pub media_queries: Arc<Locked<MediaList>>, pub rules: Arc<Locked<CssRules>>, pub source_location: SourceLocation, }
An @media
urle.
Fields
media_queries: Arc<Locked<MediaList>>
The list of media queries used by this media rule.
rules: Arc<Locked<CssRules>>
The nested rules to this media rule.
source_location: SourceLocation
The source position where this media rule was found.
Trait Implementations
impl ToMediaListKey for MediaRule
[src]
fn to_media_list_key(&self) -> MediaListKey
[src]
Get a MediaListKey
for this item. This key needs to uniquely identify the item. Read more
impl Debug for MediaRule
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl ToCssWithGuard for MediaRule
[src]
fn to_css<W>(&self, guard: &SharedRwLockReadGuard, dest: &mut W) -> Result where
W: Write,
[src]
W: Write,
Serialize self
in CSS syntax, writing to dest
, using the given lock guard.
fn to_css_string(&self, guard: &SharedRwLockReadGuard) -> String
[src]
Serialize self
in CSS syntax using the given lock guard and return a string. Read more
impl DeepCloneWithLock for MediaRule
[src]
fn deep_clone_with_lock(
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
params: &DeepCloneParams
) -> Self
[src]
&self,
lock: &SharedRwLock,
guard: &SharedRwLockReadGuard,
params: &DeepCloneParams
) -> Self
Deep clones this object.