Enum webrender::clip::PolygonIntern
source · pub enum PolygonIntern {}
Expand description
PolygonKeys get interned, because it’s a convenient way to move the data for the polygons out of the ClipItemKind and ClipItemKeyKind enums. The polygon data is both interned and retrieved by the scene builder, and not accessed at all by the frame builder. Another oddity is that the PolygonKey contains the totality of the information about the polygon, so the InternData and StoreData types are both PolygonKey.
Trait Implementations§
source§impl Clone for PolygonIntern
impl Clone for PolygonIntern
source§fn clone(&self) -> PolygonIntern
fn clone(&self) -> PolygonIntern
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 PolygonIntern
impl Debug for PolygonIntern
source§impl<'de> Deserialize<'de> for PolygonIntern
impl<'de> Deserialize<'de> for PolygonIntern
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for PolygonIntern
impl Hash for PolygonIntern
source§impl Internable for PolygonIntern
impl Internable for PolygonIntern
type Key = PolygonKey
type StoreData = PolygonKey
type InternData = PolygonKey
const PROFILE_COUNTER: usize = 100usize
source§impl MallocSizeOf for PolygonIntern
impl MallocSizeOf for PolygonIntern
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 PolygonIntern
impl PartialEq for PolygonIntern
source§fn eq(&self, other: &PolygonIntern) -> bool
fn eq(&self, other: &PolygonIntern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PolygonIntern
impl Serialize for PolygonIntern
impl Copy for PolygonIntern
impl Eq for PolygonIntern
impl StructuralPartialEq for PolygonIntern
Auto Trait Implementations§
impl Freeze for PolygonIntern
impl RefUnwindSafe for PolygonIntern
impl Send for PolygonIntern
impl Sync for PolygonIntern
impl Unpin for PolygonIntern
impl UnwindSafe for PolygonIntern
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