pub struct RectangleKey {
    pub x0: f32,
    pub y0: f32,
    pub x1: f32,
    pub y1: f32,
}Fields§
§x0: f32§y0: f32§x1: f32§y1: f32Implementations§
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 duplicate 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§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