Struct webrender::border::BorderSegmentCacheKey
source · pub struct BorderSegmentCacheKey {
pub size: LayoutSizeAu,
pub radius: LayoutSizeAu,
pub side0: BorderSideAu,
pub side1: BorderSideAu,
pub segment: BorderSegment,
pub do_aa: bool,
pub h_adjacent_corner_outer: LayoutPointAu,
pub h_adjacent_corner_radius: LayoutSizeAu,
pub v_adjacent_corner_outer: LayoutPointAu,
pub v_adjacent_corner_radius: LayoutSizeAu,
}
Expand description
Cache key that uniquely identifies a border segment in the render task cache.
Fields§
§size: LayoutSizeAu
§radius: LayoutSizeAu
§side0: BorderSideAu
§side1: BorderSideAu
§segment: BorderSegment
§do_aa: bool
§h_adjacent_corner_outer: LayoutPointAu
§h_adjacent_corner_radius: LayoutSizeAu
§v_adjacent_corner_outer: LayoutPointAu
§v_adjacent_corner_radius: LayoutSizeAu
Trait Implementations§
source§impl Clone for BorderSegmentCacheKey
impl Clone for BorderSegmentCacheKey
source§fn clone(&self) -> BorderSegmentCacheKey
fn clone(&self) -> BorderSegmentCacheKey
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 BorderSegmentCacheKey
impl Debug for BorderSegmentCacheKey
source§impl Hash for BorderSegmentCacheKey
impl Hash for BorderSegmentCacheKey
source§impl MallocSizeOf for BorderSegmentCacheKey
impl MallocSizeOf for BorderSegmentCacheKey
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 BorderSegmentCacheKey
impl PartialEq for BorderSegmentCacheKey
source§fn eq(&self, other: &BorderSegmentCacheKey) -> bool
fn eq(&self, other: &BorderSegmentCacheKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BorderSegmentCacheKey
impl Serialize for BorderSegmentCacheKey
impl Eq for BorderSegmentCacheKey
impl StructuralPartialEq for BorderSegmentCacheKey
Auto Trait Implementations§
impl Freeze for BorderSegmentCacheKey
impl RefUnwindSafe for BorderSegmentCacheKey
impl Send for BorderSegmentCacheKey
impl Sync for BorderSegmentCacheKey
impl Unpin for BorderSegmentCacheKey
impl UnwindSafe for BorderSegmentCacheKey
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