pub enum MediaFeature {
Show 56 variants
AnyHover(AnyHoverMediaFeature),
AnyPointer(AnyPointerMediaFeature),
AspectRatio(AspectRatioMediaFeature),
Color(ColorMediaFeature),
ColorGamut(ColorGamutMediaFeature),
ColorIndex(ColorIndexMediaFeature),
DeviceAspectRatio(DeviceAspectRatioMediaFeature),
DeviceHeight(DeviceHeightMediaFeature),
DeviceWidth(DeviceWidthMediaFeature),
DisplayMode(DisplayModeMediaFeature),
DynamicRange(DynamicRangeMediaFeature),
EnvironmentBlending(EnvironmentBlendingMediaFeature),
ForcedColors(ForcedColorsMediaFeature),
Grid(GridMediaFeature),
Height(HeightMediaFeature),
HorizontalViewportSegments(HorizontalViewportSegmentsMediaFeature),
Hover(HoverMediaFeature),
InvertedColors(InvertedColorsMediaFeature),
Monochrome(MonochromeMediaFeature),
NavControls(NavControlsMediaFeature),
Orientation(OrientationMediaFeature),
OverflowBlock(OverflowBlockMediaFeature),
OverflowInline(OverflowInlineMediaFeature),
Pointer(PointerMediaFeature),
PrefersColorScheme(PrefersColorSchemeMediaFeature),
PrefersContrast(PrefersContrastMediaFeature),
PrefersReducedData(PrefersReducedDataMediaFeature),
PrefersReducedMotion(PrefersReducedMotionMediaFeature),
PrefersReducedTransparency(PrefersReducedTransparencyMediaFeature),
Resolution(ResolutionMediaFeature),
Scan(ScanMediaFeature),
Scripting(ScriptingMediaFeature),
Update(UpdateMediaFeature),
VerticalViewportSegments(VerticalViewportSegmentsMediaFeature),
VideoColorGamut(VideoColorGamutMediaFeature),
VideoDynamicRange(VideoDynamicRangeMediaFeature),
Width(WidthMediaFeature),
WebkitAnimationMediaFeature(WebkitAnimationMediaFeature),
WebkitDevicePixelRatioMediaFeature(WebkitDevicePixelRatioMediaFeature),
WebkitTransform2dMediaFeature(WebkitTransform2dMediaFeature),
WebkitTransform3dMediaFeature(WebkitTransform3dMediaFeature),
WebkitTransitionMediaFeature(WebkitTransitionMediaFeature),
WebkitVideoPlayableInlineMediaFeature(WebkitVideoPlayableInlineMediaFeature),
MozDeviceOrientationMediaFeature(MozDeviceOrientationMediaFeature),
MozDevicePixelRatioMediaFeature(MozDevicePixelRatioMediaFeature),
MozMacGraphiteThemeMediaFeature(MozMacGraphiteThemeMediaFeature),
MozMaemoClassicMediaFeature(MozMaemoClassicMediaFeature),
MozImagesInMenusMediaFeature(MozImagesInMenusMediaFeature),
MozOsVersionMenusMediaFeature(MozOsVersionMediaFeature),
MsHighContrastMediaFeature(MsHighContrastMediaFeature),
MsViewStateMediaFeature(MsViewStateMediaFeature),
MsImeAlignMediaFeature(MsImeAlignMediaFeature),
MsDevicePixelRatioMediaFeature(MsDevicePixelRatioMediaFeature),
MsColumnCountMediaFeature(MsColumnCountMediaFeature),
ODevicePixelRatioMediaFeature(ODevicePixelRatioMediaFeature),
Hack(HackMediaFeature),
}Variants§
AnyHover(AnyHoverMediaFeature)
AnyPointer(AnyPointerMediaFeature)
AspectRatio(AspectRatioMediaFeature)
Color(ColorMediaFeature)
ColorGamut(ColorGamutMediaFeature)
ColorIndex(ColorIndexMediaFeature)
DeviceAspectRatio(DeviceAspectRatioMediaFeature)
DeviceHeight(DeviceHeightMediaFeature)
DeviceWidth(DeviceWidthMediaFeature)
DisplayMode(DisplayModeMediaFeature)
DynamicRange(DynamicRangeMediaFeature)
EnvironmentBlending(EnvironmentBlendingMediaFeature)
ForcedColors(ForcedColorsMediaFeature)
Grid(GridMediaFeature)
Height(HeightMediaFeature)
HorizontalViewportSegments(HorizontalViewportSegmentsMediaFeature)
Hover(HoverMediaFeature)
InvertedColors(InvertedColorsMediaFeature)
Monochrome(MonochromeMediaFeature)
Orientation(OrientationMediaFeature)
OverflowBlock(OverflowBlockMediaFeature)
OverflowInline(OverflowInlineMediaFeature)
Pointer(PointerMediaFeature)
PrefersColorScheme(PrefersColorSchemeMediaFeature)
PrefersContrast(PrefersContrastMediaFeature)
PrefersReducedData(PrefersReducedDataMediaFeature)
PrefersReducedMotion(PrefersReducedMotionMediaFeature)
PrefersReducedTransparency(PrefersReducedTransparencyMediaFeature)
Resolution(ResolutionMediaFeature)
Scan(ScanMediaFeature)
Scripting(ScriptingMediaFeature)
Update(UpdateMediaFeature)
VerticalViewportSegments(VerticalViewportSegmentsMediaFeature)
VideoColorGamut(VideoColorGamutMediaFeature)
VideoDynamicRange(VideoDynamicRangeMediaFeature)
Width(WidthMediaFeature)
WebkitAnimationMediaFeature(WebkitAnimationMediaFeature)
WebkitDevicePixelRatioMediaFeature(WebkitDevicePixelRatioMediaFeature)
WebkitTransform2dMediaFeature(WebkitTransform2dMediaFeature)
WebkitTransform3dMediaFeature(WebkitTransform3dMediaFeature)
WebkitTransitionMediaFeature(WebkitTransitionMediaFeature)
WebkitVideoPlayableInlineMediaFeature(WebkitVideoPlayableInlineMediaFeature)
MozDeviceOrientationMediaFeature(MozDeviceOrientationMediaFeature)
MozDevicePixelRatioMediaFeature(MozDevicePixelRatioMediaFeature)
MozMacGraphiteThemeMediaFeature(MozMacGraphiteThemeMediaFeature)
MozMaemoClassicMediaFeature(MozMaemoClassicMediaFeature)
MozImagesInMenusMediaFeature(MozImagesInMenusMediaFeature)
MozOsVersionMenusMediaFeature(MozOsVersionMediaFeature)
MsHighContrastMediaFeature(MsHighContrastMediaFeature)
MsViewStateMediaFeature(MsViewStateMediaFeature)
MsImeAlignMediaFeature(MsImeAlignMediaFeature)
MsDevicePixelRatioMediaFeature(MsDevicePixelRatioMediaFeature)
MsColumnCountMediaFeature(MsColumnCountMediaFeature)
ODevicePixelRatioMediaFeature(ODevicePixelRatioMediaFeature)
Hack(HackMediaFeature)
Trait Implementations§
Source§impl Clone for MediaFeature
impl Clone for MediaFeature
Source§fn clone(&self) -> MediaFeature
fn clone(&self) -> MediaFeature
Returns a duplicate of the value. Read more
1.0.0 · 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 MediaFeature
impl Debug for MediaFeature
Source§impl Hash for MediaFeature
impl Hash for MediaFeature
Source§impl Ord for MediaFeature
impl Ord for MediaFeature
Source§fn cmp(&self, other: &MediaFeature) -> Ordering
fn cmp(&self, other: &MediaFeature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for MediaFeature
impl<'a> Parse<'a> for MediaFeature
Source§impl PartialEq for MediaFeature
impl PartialEq for MediaFeature
Source§impl PartialOrd for MediaFeature
impl PartialOrd for MediaFeature
Source§impl ToCursors for MediaFeature
impl ToCursors for MediaFeature
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for MediaFeature
impl StructuralPartialEq for MediaFeature
Auto Trait Implementations§
impl Freeze for MediaFeature
impl RefUnwindSafe for MediaFeature
impl Send for MediaFeature
impl Sync for MediaFeature
impl Unpin for MediaFeature
impl UnwindSafe for MediaFeature
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