Struct lightningcss::rules::media::MediaRule
source · pub struct MediaRule<'i, R = DefaultAtRule> {
pub query: MediaList<'i>,
pub rules: CssRuleList<'i, R>,
pub loc: Location,
}
Expand description
A @media rule.
Fields§
§query: MediaList<'i>
The media query list.
rules: CssRuleList<'i, R>
The rules within the @media
rule.
loc: Location
The location of the rule in the source file.
Trait Implementations§
source§impl<'i, R: PartialEq> PartialEq<MediaRule<'i, R>> for MediaRule<'i, R>
impl<'i, R: PartialEq> PartialEq<MediaRule<'i, R>> for MediaRule<'i, R>
source§impl<'i, R, __V: Visitor<'i, R>> Visit<'i, R, __V> for MediaRule<'i, R>where
R: Visit<'i, R, __V>,
impl<'i, R, __V: Visitor<'i, R>> Visit<'i, R, __V> for MediaRule<'i, R>where
R: Visit<'i, R, __V>,
source§const CHILD_TYPES: VisitTypes = _
const CHILD_TYPES: VisitTypes = _
The types of values contained within this value and its children.
This is used to skip branches that don’t have any values requested
by the Visitor. Read more
source§fn visit_children(&mut self, visitor: &mut __V)
fn visit_children(&mut self, visitor: &mut __V)
Visit the children of this value.
impl<'i, R> StructuralPartialEq for MediaRule<'i, R>
Auto Trait Implementations§
impl<'i, R> RefUnwindSafe for MediaRule<'i, R>where
R: RefUnwindSafe,
impl<'i, R> Send for MediaRule<'i, R>where
R: Send,
impl<'i, R> Sync for MediaRule<'i, R>where
R: Sync,
impl<'i, R> Unpin for MediaRule<'i, R>where
R: Unpin,
impl<'i, R> UnwindSafe for MediaRule<'i, R>where
R: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer