#[non_exhaustive]pub enum BackgroundClip {
BorderArea,
BorderBox,
ContentBox,
PaddingBox,
Text,
Raw(Raw),
}Expand description
A value of background-clip.
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.
BorderArea
border-area.
BorderBox
border-box.
ContentBox
content-box.
PaddingBox
padding-box.
Text
text.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for BackgroundClip
impl Clone for BackgroundClip
Source§fn clone(&self) -> BackgroundClip
fn clone(&self) -> BackgroundClip
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 BackgroundClip
impl Debug for BackgroundClip
Source§impl Display for BackgroundClip
impl Display for BackgroundClip
Source§impl From<Raw> for BackgroundClip
impl From<Raw> for BackgroundClip
Source§impl PartialEq for BackgroundClip
impl PartialEq for BackgroundClip
impl StructuralPartialEq for BackgroundClip
Auto Trait Implementations§
impl Freeze for BackgroundClip
impl RefUnwindSafe for BackgroundClip
impl Send for BackgroundClip
impl Sync for BackgroundClip
impl Unpin for BackgroundClip
impl UnsafeUnpin for BackgroundClip
impl UnwindSafe for BackgroundClip
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