pub enum MediaFeatureId {
Show 39 variants
Width,
Height,
AspectRatio,
Orientation,
OverflowBlock,
OverflowInline,
HorizontalViewportSegments,
VerticalViewportSegments,
DisplayMode,
Resolution,
Scan,
Grid,
Update,
EnvironmentBlending,
Color,
ColorIndex,
Monochrome,
ColorGamut,
DynamicRange,
InvertedColors,
Pointer,
Hover,
AnyPointer,
AnyHover,
NavControls,
VideoColorGamut,
VideoDynamicRange,
Scripting,
PrefersReducedMotion,
PrefersReducedTransparency,
PrefersContrast,
ForcedColors,
PrefersColorScheme,
PrefersReducedData,
DeviceWidth,
DeviceHeight,
DeviceAspectRatio,
WebKitDevicePixelRatio,
MozDevicePixelRatio,
}
Expand description
A media query feature identifier.
Variants§
Width
The width media feature.
Height
The height media feature.
AspectRatio
The aspect-ratio media feature.
Orientation
The orientation media feature.
OverflowBlock
The overflow-block media feature.
OverflowInline
The overflow-inline media feature.
HorizontalViewportSegments
The horizontal-viewport-segments media feature.
VerticalViewportSegments
The vertical-viewport-segments media feature.
DisplayMode
The display-mode media feature.
Resolution
The resolution media feature.
Scan
The scan media feature.
Grid
The grid media feature.
Update
The update media feature.
EnvironmentBlending
The environment-blending media feature.
Color
The color media feature.
ColorIndex
The color-index media feature.
Monochrome
The monochrome media feature.
ColorGamut
The color-gamut media feature.
DynamicRange
The dynamic-range media feature.
InvertedColors
The inverted-colors media feature.
Pointer
The pointer media feature.
Hover
The hover media feature.
AnyPointer
The any-pointer media feature.
AnyHover
The any-hover media feature.
The nav-controls media feature.
VideoColorGamut
The video-color-gamut media feature.
VideoDynamicRange
The video-dynamic-range media feature.
Scripting
The scripting media feature.
PrefersReducedMotion
The prefers-reduced-motion media feature.
PrefersReducedTransparency
The prefers-reduced-transparency media feature.
PrefersContrast
The prefers-contrast media feature.
ForcedColors
The forced-colors media feature.
PrefersColorScheme
The prefers-color-scheme media feature.
PrefersReducedData
The prefers-reduced-data media feature.
DeviceWidth
The device-width media feature.
DeviceHeight
The device-height media feature.
DeviceAspectRatio
The device-aspect-ratio media feature.
WebKitDevicePixelRatio
The non-standard -webkit-device-pixel-ratio media feature.
MozDevicePixelRatio
The non-standard -moz-device-pixel-ratio media feature.
Implementations§
Trait Implementations§
Source§impl Clone for MediaFeatureId
impl Clone for MediaFeatureId
Source§fn clone(&self) -> MediaFeatureId
fn clone(&self) -> MediaFeatureId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MediaFeatureId
impl Debug for MediaFeatureId
Source§impl<'de> Deserialize<'de> for MediaFeatureId
impl<'de> Deserialize<'de> for MediaFeatureId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<'any> IntoOwned<'any> for MediaFeatureId
impl<'any> IntoOwned<'any> for MediaFeatureId
Source§type Owned = MediaFeatureId
type Owned = MediaFeatureId
Self
with a new lifetime.Source§fn into_owned(self) -> Self
fn into_owned(self) -> Self
self
'static
.Source§impl JsonSchema for MediaFeatureId
impl JsonSchema for MediaFeatureId
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl<'i> Parse<'i> for MediaFeatureId
impl<'i> Parse<'i> for MediaFeatureId
Source§fn 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>>>
Source§fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
fn parse_string(input: &'i str) -> Result<Self, ParseError<'i, ParserError<'i>>>
Source§impl PartialEq for MediaFeatureId
impl PartialEq for MediaFeatureId
Source§impl Serialize for MediaFeatureId
impl Serialize for MediaFeatureId
Source§impl ToCss for MediaFeatureId
impl ToCss for MediaFeatureId
Source§fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
fn to_css<W>(
&self,
dest: &mut Printer<'_, '_, '_, W>,
) -> Result<(), PrinterError>where
W: Write,
self
in CSS syntax, writing to dest
.Source§fn to_css_string(
&self,
options: PrinterOptions<'_>,
) -> Result<String, PrinterError>
fn to_css_string( &self, options: PrinterOptions<'_>, ) -> Result<String, PrinterError>
self
in CSS syntax and return a string. Read moreSource§impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for MediaFeatureId
impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for MediaFeatureId
Source§const CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
visitor
only.impl Copy for MediaFeatureId
impl StructuralPartialEq for MediaFeatureId
Auto Trait Implementations§
impl Freeze for MediaFeatureId
impl RefUnwindSafe for MediaFeatureId
impl Send for MediaFeatureId
impl Sync for MediaFeatureId
impl Unpin for MediaFeatureId
impl UnwindSafe for MediaFeatureId
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more