pub enum BackgroundClip {
BorderBox,
PaddingBox,
ContentBox,
Text,
}Expand description
The background-clip keyword.
Variants§
BorderBox
border-box — clip to the border box. Default.
PaddingBox
padding-box — clip to the padding box.
ContentBox
content-box — clip to the content box.
Text
text — clip to the foreground text.
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 moreimpl Copy for BackgroundClip
Source§impl Debug for BackgroundClip
impl Debug for BackgroundClip
impl Eq for BackgroundClip
Source§impl Hash for BackgroundClip
impl Hash for BackgroundClip
Source§impl PartialEq for BackgroundClip
impl PartialEq for BackgroundClip
Source§fn eq(&self, other: &BackgroundClip) -> bool
fn eq(&self, other: &BackgroundClip) -> bool
Tests for
self and other values to be equal, and is used by ==.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