pub enum BoxShadowKind {
Outset,
OutsetUnclipped,
Inset,
}Expand description
Where a box shadow is painted relative to its box.
Variants§
Outset
A shadow cast outside of the box (a CSS outer shadow, cast by the border box). It is only painted outside of the box, as CSS specifies.
OutsetUnclipped
Like Self::Outset, but also painted underneath the box.
If the box will be painted opaquely on top of the shadow, this avoids clipping the shadow, and the faint seam that can appear where the shadow’s and the box’s anti-aliased edges meet.
Inset
A shadow cast inside of the box (a CSS inset shadow, cast by the padding box). It is only
painted inside of the box.
Trait Implementations§
Source§impl Clone for BoxShadowKind
impl Clone for BoxShadowKind
impl Copy for BoxShadowKind
Source§impl Debug for BoxShadowKind
impl Debug for BoxShadowKind
impl Eq for BoxShadowKind
Source§impl PartialEq for BoxShadowKind
impl PartialEq for BoxShadowKind
impl StructuralPartialEq for BoxShadowKind
Auto Trait Implementations§
impl Forget for BoxShadowKind
impl Freeze for BoxShadowKind
impl Move for BoxShadowKind
impl RefUnwindSafe for BoxShadowKind
impl Send for BoxShadowKind
impl Sync for BoxShadowKind
impl Unpin for BoxShadowKind
impl UnsafeUnpin for BoxShadowKind
impl UnwindSafe for BoxShadowKind
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