#[non_exhaustive]pub enum BackgroundImage {
None,
Url(Url),
Raw(Raw),
}Expand description
A value of background-image.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for BackgroundImage
impl Clone for BackgroundImage
Source§fn clone(&self) -> BackgroundImage
fn clone(&self) -> BackgroundImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundImage
impl Debug for BackgroundImage
Source§impl Display for BackgroundImage
impl Display for BackgroundImage
Source§impl From<Raw> for BackgroundImage
impl From<Raw> for BackgroundImage
Source§impl From<Url> for BackgroundImage
impl From<Url> for BackgroundImage
Source§impl PartialEq for BackgroundImage
impl PartialEq for BackgroundImage
impl StructuralPartialEq for BackgroundImage
Auto Trait Implementations§
impl Freeze for BackgroundImage
impl RefUnwindSafe for BackgroundImage
impl Send for BackgroundImage
impl Sync for BackgroundImage
impl Unpin for BackgroundImage
impl UnsafeUnpin for BackgroundImage
impl UnwindSafe for BackgroundImage
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