Struct webrender::box_shadow::BoxShadow
source · pub struct BoxShadow {
pub color: ColorU,
pub blur_radius: Au,
pub clip_mode: BoxShadowClipMode,
}
Fields§
§color: ColorU
§blur_radius: Au
§clip_mode: BoxShadowClipMode
Trait Implementations§
source§impl From<BoxShadow> for BoxShadowData
impl From<BoxShadow> for BoxShadowData
source§impl Internable for BoxShadow
impl Internable for BoxShadow
type Key = PrimKey<BoxShadow>
type StoreData = PrimTemplate<BoxShadowData>
type InternData = ()
const PROFILE_COUNTER: usize = 101usize
source§impl InternablePrimitive for BoxShadow
impl InternablePrimitive for BoxShadow
source§fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<BoxShadow>
fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<BoxShadow>
Build a new key from self with
info
.fn make_instance_kind( _key: PrimKey<BoxShadow>, data_handle: Handle<BoxShadow>, _prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
source§impl MallocSizeOf for BoxShadow
impl MallocSizeOf for BoxShadow
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for BoxShadow
impl PartialEq for BoxShadow
impl Eq for BoxShadow
impl StructuralPartialEq for BoxShadow
Auto Trait Implementations§
impl Freeze for BoxShadow
impl RefUnwindSafe for BoxShadow
impl Send for BoxShadow
impl Sync for BoxShadow
impl Unpin for BoxShadow
impl UnwindSafe for BoxShadow
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more