Struct webrender::prim_store::RectangleKey
source · pub struct RectangleKey {
pub x0: f32,
pub y0: f32,
pub x1: f32,
pub y1: f32,
}
Fields§
§x0: f32
§y0: f32
§x1: f32
§y1: f32
Implementations§
source§impl RectangleKey
impl RectangleKey
pub fn intersects(&self, other: &Self) -> bool
Trait Implementations§
source§impl Clone for RectangleKey
impl Clone for RectangleKey
source§fn clone(&self) -> RectangleKey
fn clone(&self) -> RectangleKey
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 RectangleKey
impl Debug for RectangleKey
source§impl From<Box2D<f32, LayoutPixel>> for RectangleKey
impl From<Box2D<f32, LayoutPixel>> for RectangleKey
source§fn from(rect: LayoutRect) -> RectangleKey
fn from(rect: LayoutRect) -> RectangleKey
Converts to this type from the input type.
source§impl From<Box2D<f32, PicturePixel>> for RectangleKey
impl From<Box2D<f32, PicturePixel>> for RectangleKey
source§fn from(rect: PictureRect) -> RectangleKey
fn from(rect: PictureRect) -> RectangleKey
Converts to this type from the input type.
source§impl From<Box2D<f32, WorldPixel>> for RectangleKey
impl From<Box2D<f32, WorldPixel>> for RectangleKey
source§fn from(rect: WorldRect) -> RectangleKey
fn from(rect: WorldRect) -> RectangleKey
Converts to this type from the input type.
source§impl From<RectangleKey> for LayoutRect
impl From<RectangleKey> for LayoutRect
source§fn from(key: RectangleKey) -> LayoutRect
fn from(key: RectangleKey) -> LayoutRect
Converts to this type from the input type.
source§impl From<RectangleKey> for WorldRect
impl From<RectangleKey> for WorldRect
source§fn from(key: RectangleKey) -> WorldRect
fn from(key: RectangleKey) -> WorldRect
Converts to this type from the input type.
source§impl Hash for RectangleKey
impl Hash for RectangleKey
source§impl MallocSizeOf for RectangleKey
impl MallocSizeOf for RectangleKey
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 RectangleKey
impl PartialEq for RectangleKey
source§impl Serialize for RectangleKey
impl Serialize for RectangleKey
impl Copy for RectangleKey
impl Eq for RectangleKey
impl StructuralPartialEq for RectangleKey
Auto Trait Implementations§
impl Freeze for RectangleKey
impl RefUnwindSafe for RectangleKey
impl Send for RectangleKey
impl Sync for RectangleKey
impl Unpin for RectangleKey
impl UnwindSafe for RectangleKey
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