pub enum ImageRef {
None,
Url(CssString),
Gradient(Gradient),
}Expand description
A reference to an image resource. Lynx accepts url("..."),
linear-gradient(...), and radial-gradient(...). conic-gradient
is supported on background-image but represented via crate::Gradient.
Variants§
None
none — no image.
Url(CssString)
url("<path>").
Gradient(Gradient)
One of the <gradient> functions.
Trait Implementations§
impl StructuralPartialEq for ImageRef
Auto Trait Implementations§
impl Freeze for ImageRef
impl RefUnwindSafe for ImageRef
impl Send for ImageRef
impl Sync for ImageRef
impl Unpin for ImageRef
impl UnsafeUnpin for ImageRef
impl UnwindSafe for ImageRef
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