Struct webrender::prim_store::PointKey
source · pub struct PointKey {
pub x: f32,
pub y: f32,
}
Expand description
A hashable point for using as a key during primitive interning.
Fields§
§x: f32
§y: f32
Trait Implementations§
source§impl From<Point2D<f32, LayoutPixel>> for PointKey
impl From<Point2D<f32, LayoutPixel>> for PointKey
source§fn from(p: LayoutPoint) -> PointKey
fn from(p: LayoutPoint) -> PointKey
Converts to this type from the input type.
source§impl From<Point2D<f32, PicturePixel>> for PointKey
impl From<Point2D<f32, PicturePixel>> for PointKey
source§fn from(p: PicturePoint) -> PointKey
fn from(p: PicturePoint) -> PointKey
Converts to this type from the input type.
source§impl From<Point2D<f32, WorldPixel>> for PointKey
impl From<Point2D<f32, WorldPixel>> for PointKey
source§fn from(p: WorldPoint) -> PointKey
fn from(p: WorldPoint) -> PointKey
Converts to this type from the input type.
source§impl From<PointKey> for LayoutPoint
impl From<PointKey> for LayoutPoint
source§fn from(key: PointKey) -> LayoutPoint
fn from(key: PointKey) -> LayoutPoint
Converts to this type from the input type.
source§impl MallocSizeOf for PointKey
impl MallocSizeOf for PointKey
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.
impl Copy for PointKey
impl Eq for PointKey
impl StructuralPartialEq for PointKey
Auto Trait Implementations§
impl Freeze for PointKey
impl RefUnwindSafe for PointKey
impl Send for PointKey
impl Sync for PointKey
impl Unpin for PointKey
impl UnwindSafe for PointKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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