Enum parcel_css::media_query::MediaType
source · [−]pub enum MediaType<'i> {
All,
Print,
Screen,
Custom(CowArcStr<'i>),
}
Expand description
A media type within a media query.
Variants
All
Matches all devices.
Print
Matches printers, and devices intended to reproduce a printed display, such as a web browser showing a document in “Print Preview”.
Screen
Matches all devices that aren’t matched by print.
Custom(CowArcStr<'i>)
An unknown media type.
Trait Implementations
sourceimpl<'i> Parse<'i> for MediaType<'i>
impl<'i> Parse<'i> for MediaType<'i>
sourcefn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse<'t>(
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value of this type using an existing parser.
sourcefn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
Parse a value from a string. Read more
impl<'i> StructuralPartialEq for MediaType<'i>
Auto Trait Implementations
impl<'i> RefUnwindSafe for MediaType<'i>
impl<'i> Send for MediaType<'i>
impl<'i> Sync for MediaType<'i>
impl<'i> Unpin for MediaType<'i>
impl<'i> UnwindSafe for MediaType<'i>
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more