pub struct RectKey {
pub x0: f32,
pub y0: f32,
pub x1: f32,
pub y1: f32,
}Fields§
§x0: f32§y0: f32§x1: f32§y1: f32Implementations§
Trait Implementations§
Source§impl From<Box2D<f32, LayoutPixel>> for RectKey
impl From<Box2D<f32, LayoutPixel>> for RectKey
Source§fn from(rect: LayoutRect) -> RectKey
fn from(rect: LayoutRect) -> RectKey
Converts to this type from the input type.
Source§impl From<Box2D<f32, PicturePixel>> for RectKey
impl From<Box2D<f32, PicturePixel>> for RectKey
Source§fn from(rect: PictureRect) -> RectKey
fn from(rect: PictureRect) -> RectKey
Converts to this type from the input type.
Source§impl From<RectKey> for LayoutRect
impl From<RectKey> for LayoutRect
Source§fn from(key: RectKey) -> LayoutRect
fn from(key: RectKey) -> LayoutRect
Converts to this type from the input type.
Source§impl MallocSizeOf for RectKey
impl MallocSizeOf for RectKey
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 RectKey
impl Eq for RectKey
impl StructuralPartialEq for RectKey
Auto Trait Implementations§
impl Freeze for RectKey
impl RefUnwindSafe for RectKey
impl Send for RectKey
impl Sync for RectKey
impl Unpin for RectKey
impl UnsafeUnpin for RectKey
impl UnwindSafe for RectKey
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