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
impl Copy for MediaFeatureId
Source§impl Debug for MediaFeatureId
impl Debug for MediaFeatureId
Source§impl<'de> Deserialize<'de> for MediaFeatureId
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MediaFeatureId
serde only.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
Available on crate feature into_owned only.
impl<'any> IntoOwned<'any> for MediaFeatureId
into_owned only.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
Available on crate feature jsonschema only.
impl JsonSchema for MediaFeatureId
jsonschema only.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
Available on crate feature serde only.
impl Serialize for MediaFeatureId
serde only.impl StructuralPartialEq 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
Available on crate feature visitor only.
impl<'i, __T: Visit<'i, __T, __V>, __V: ?Sized + Visitor<'i, __T>> Visit<'i, __T, __V> for MediaFeatureId
visitor only.Source§const CHILD_TYPES: VisitTypes
const CHILD_TYPES: VisitTypes
Auto Trait Implementations§
impl Freeze for MediaFeatureId
impl RefUnwindSafe for MediaFeatureId
impl Send for MediaFeatureId
impl Sync for MediaFeatureId
impl Unpin for MediaFeatureId
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.