#[non_exhaustive]pub struct MediaQueryList(pub Vec<MediaQuery>);Expand description
<media-query-list> = <media-query>#
Holds a list of successfully parsed queries. The public parsing
entry point (crate::parser::parse_media_query_list) returns a
Result per list entry instead of this type, since one invalid
entry must not fail the whole list (see plan/DECISIONS.md for why)
— MediaQueryList is here for callers that already have a fully
valid list in hand (e.g. after filtering out the Errs themselves).
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: Vec<MediaQuery>Trait Implementations§
Source§impl Clone for MediaQueryList
impl Clone for MediaQueryList
Source§fn clone(&self) -> MediaQueryList
fn clone(&self) -> MediaQueryList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MediaQueryList
impl Debug for MediaQueryList
Source§impl PartialEq for MediaQueryList
impl PartialEq for MediaQueryList
impl StructuralPartialEq for MediaQueryList
Auto Trait Implementations§
impl Freeze for MediaQueryList
impl RefUnwindSafe for MediaQueryList
impl Send for MediaQueryList
impl Sync for MediaQueryList
impl Unpin for MediaQueryList
impl UnsafeUnpin for MediaQueryList
impl UnwindSafe for MediaQueryList
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