Struct swc_css_ast::MediaQuery
source · pub struct MediaQuery {
pub span: Span,
pub modifier: Option<Ident>,
pub media_type: Option<MediaType>,
pub keyword: Option<Ident>,
pub condition: Option<Box<MediaConditionType>>,
}
Fields§
§span: Span
§modifier: Option<Ident>
§media_type: Option<MediaType>
§keyword: Option<Ident>
§condition: Option<Box<MediaConditionType>>
Trait Implementations§
source§impl Clone for MediaQuery
impl Clone for MediaQuery
source§fn clone(&self) -> MediaQuery
fn clone(&self) -> MediaQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MediaQuery
impl Debug for MediaQuery
source§impl EqIgnoreSpan for MediaQuery
impl EqIgnoreSpan for MediaQuery
fn eq_ignore_span(&self, other: &Self) -> bool
source§impl Hash for MediaQuery
impl Hash for MediaQuery
source§impl PartialEq<MediaQuery> for MediaQuery
impl PartialEq<MediaQuery> for MediaQuery
source§fn eq(&self, other: &MediaQuery) -> bool
fn eq(&self, other: &MediaQuery) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.