pub enum ImageRenderingStyleValue {
Auto(Ident),
Smooth(Ident),
HighQuality(Ident),
Pixelated(Ident),
CrispEdges(Ident),
}Expand description
Represents the style value for image-rendering as defined in css-images-5.
The image-rendering CSS property sets how images are scaled, retaining smoothness for photos, or hard edges for pixel art and QR codes.
The grammar is defined as:
auto | smooth | high-quality | pixelated | crisp-edgesVariants§
Trait Implementations§
Source§impl Clone for ImageRenderingStyleValue
impl Clone for ImageRenderingStyleValue
Source§fn clone(&self) -> ImageRenderingStyleValue
fn clone(&self) -> ImageRenderingStyleValue
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 ImageRenderingStyleValue
impl Debug for ImageRenderingStyleValue
Source§impl Hash for ImageRenderingStyleValue
impl Hash for ImageRenderingStyleValue
Source§impl Ord for ImageRenderingStyleValue
impl Ord for ImageRenderingStyleValue
Source§fn cmp(&self, other: &ImageRenderingStyleValue) -> Ordering
fn cmp(&self, other: &ImageRenderingStyleValue) -> 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 ImageRenderingStyleValue
impl<'a> Parse<'a> for ImageRenderingStyleValue
Source§impl PartialEq for ImageRenderingStyleValue
impl PartialEq for ImageRenderingStyleValue
Source§impl PartialOrd for ImageRenderingStyleValue
impl PartialOrd for ImageRenderingStyleValue
Source§impl<'a> Peek<'a> for ImageRenderingStyleValue
impl<'a> Peek<'a> for ImageRenderingStyleValue
Source§impl ToCursors for ImageRenderingStyleValue
impl ToCursors for ImageRenderingStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ImageRenderingStyleValue
impl StructuralPartialEq for ImageRenderingStyleValue
Auto Trait Implementations§
impl Freeze for ImageRenderingStyleValue
impl RefUnwindSafe for ImageRenderingStyleValue
impl Send for ImageRenderingStyleValue
impl Sync for ImageRenderingStyleValue
impl Unpin for ImageRenderingStyleValue
impl UnwindSafe for ImageRenderingStyleValue
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