Struct Rect

pub struct Rect { pub x: u32, pub y: u32, pub width: u32, pub height: u32 }

A Rectangle defined by its top left corner, width and height.

Fields

x: u32

The x coordinate of the top left corner.

y: u32

The y coordinate of the top left corner.

width: u32

The rectangle's width.

height: u32

The rectangle's height.

Trait Implementations

impl Clone for Rect

fn clone(&self) -> Self

impl Copy for Rect

impl Debug for Rect

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Rect

impl Hash for Rect

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for Rect

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Rect

Auto Trait Implementations

impl Freeze for Rect

impl RefUnwindSafe for Rect

impl Send for Rect

impl Sync for Rect

impl Unpin for Rect

impl UnsafeUnpin for Rect

impl UnwindSafe for Rect

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Rect where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Rect where ST: ?Sized, DT: ?Sized,

impl<T> Any for Rect where T: 'static + ?Sized,

impl<T> Borrow<T> for Rect where T: ?Sized,

impl<T> BorrowMut<T> for Rect where T: ?Sized,

impl<T> CloneToUninit for Rect where T: Clone,

impl<T> From<T> for Rect

impl<T> IntoEither for Rect

impl<T> Pointable for Rect

impl<T> Read<Exclusive, BecauseExclusive> for Rect where T: ?Sized,

impl<T> ToOwned for Rect where T: Clone,

impl<T, U> Into<U> for Rect where U: From<T>,

impl<T, U> TryFrom<U> for Rect where U: Into<T>,

impl<T, U> TryInto<U> for Rect where U: TryFrom<T>,