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 ==
.source§impl Spanned for MediaQuery
impl Spanned for MediaQuery
source§impl Take for MediaQuery
impl Take for MediaQuery
impl Eq for MediaQuery
impl StructuralEq for MediaQuery
impl StructuralPartialEq for MediaQuery
Auto Trait Implementations§
impl RefUnwindSafe for MediaQuery
impl Send for MediaQuery
impl Sync for MediaQuery
impl Unpin for MediaQuery
impl UnwindSafe for MediaQuery
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more