pub struct Origin2D {
pub x: u32,
pub y: u32,
}Expand description
A two-dimensional origin, typically representing an (x, y) offset.
This is often used to specify the top-left corner of a rectangular region.
Fields§
§x: u32The x-coordinate of the origin.
y: u32The y-coordinate of the origin.
Trait Implementations§
impl Copy for Origin2D
impl Eq for Origin2D
impl StructuralPartialEq for Origin2D
Auto Trait Implementations§
impl Freeze for Origin2D
impl RefUnwindSafe for Origin2D
impl Send for Origin2D
impl Sync for Origin2D
impl Unpin for Origin2D
impl UnsafeUnpin for Origin2D
impl UnwindSafe for Origin2D
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.