#[non_exhaustive]pub enum MediaModifier {
Not,
Only,
}Expand description
not | only, as used in the <media-type> branch of <media-query>.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Not
not: negates the whole <media-query>.
Only
only: present only to hide the query from legacy UAs that
don’t support media types other than the four originally
defined ones; has no effect on this crate’s parsing result.
Trait Implementations§
Source§impl Clone for MediaModifier
impl Clone for MediaModifier
Source§fn clone(&self) -> MediaModifier
fn clone(&self) -> MediaModifier
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 moreimpl Copy for MediaModifier
Source§impl Debug for MediaModifier
impl Debug for MediaModifier
impl Eq for MediaModifier
Source§impl PartialEq for MediaModifier
impl PartialEq for MediaModifier
impl StructuralPartialEq for MediaModifier
Auto Trait Implementations§
impl Freeze for MediaModifier
impl RefUnwindSafe for MediaModifier
impl Send for MediaModifier
impl Sync for MediaModifier
impl Unpin for MediaModifier
impl UnsafeUnpin for MediaModifier
impl UnwindSafe for MediaModifier
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