Struct webrender::box_shadow::BoxShadowCacheKey
source · pub struct BoxShadowCacheKey {
pub blur_radius_dp: i32,
pub clip_mode: BoxShadowClipMode,
pub original_alloc_size: DeviceIntSize,
pub br_top_left: DeviceIntSize,
pub br_top_right: DeviceIntSize,
pub br_bottom_right: DeviceIntSize,
pub br_bottom_left: DeviceIntSize,
pub device_pixel_scale: Au,
}
Fields§
§blur_radius_dp: i32
§clip_mode: BoxShadowClipMode
§original_alloc_size: DeviceIntSize
§br_top_left: DeviceIntSize
§br_top_right: DeviceIntSize
§br_bottom_right: DeviceIntSize
§br_bottom_left: DeviceIntSize
§device_pixel_scale: Au
Trait Implementations§
source§impl Clone for BoxShadowCacheKey
impl Clone for BoxShadowCacheKey
source§fn clone(&self) -> BoxShadowCacheKey
fn clone(&self) -> BoxShadowCacheKey
Returns a copy of the value. Read more
1.0.0 · 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 BoxShadowCacheKey
impl Debug for BoxShadowCacheKey
source§impl Hash for BoxShadowCacheKey
impl Hash for BoxShadowCacheKey
source§impl MallocSizeOf for BoxShadowCacheKey
impl MallocSizeOf for BoxShadowCacheKey
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 BoxShadowCacheKey
impl PartialEq for BoxShadowCacheKey
source§fn eq(&self, other: &BoxShadowCacheKey) -> bool
fn eq(&self, other: &BoxShadowCacheKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BoxShadowCacheKey
impl Serialize for BoxShadowCacheKey
impl Eq for BoxShadowCacheKey
impl StructuralPartialEq for BoxShadowCacheKey
Auto Trait Implementations§
impl Freeze for BoxShadowCacheKey
impl RefUnwindSafe for BoxShadowCacheKey
impl Send for BoxShadowCacheKey
impl Sync for BoxShadowCacheKey
impl Unpin for BoxShadowCacheKey
impl UnwindSafe for BoxShadowCacheKey
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