pub struct TextureRect {
pub x: u16,
pub y: u16,
pub w: u16,
pub h: u16,
}Expand description
Coordinates of a rectangle within a texture
Fields§
§x: u16Upper-left X coordinate of rectangle to update
y: u16Upper-left Y coordinate of rectangle to update
w: u16Width of rectangle to update
h: u16Height of rectangle to update
Trait Implementations§
Source§impl Clone for TextureRect
impl Clone for TextureRect
Source§fn clone(&self) -> TextureRect
fn clone(&self) -> TextureRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureRect
Source§impl Debug for TextureRect
impl Debug for TextureRect
impl Eq for TextureRect
Source§impl From<ImTextureRect> for TextureRect
impl From<ImTextureRect> for TextureRect
Source§fn from(rect: ImTextureRect) -> Self
fn from(rect: ImTextureRect) -> Self
Converts to this type from the input type.
Source§impl From<TextureRect> for ImTextureRect
impl From<TextureRect> for ImTextureRect
Source§fn from(rect: TextureRect) -> Self
fn from(rect: TextureRect) -> Self
Converts to this type from the input type.
Source§impl Hash for TextureRect
impl Hash for TextureRect
Source§impl PartialEq for TextureRect
impl PartialEq for TextureRect
Source§fn eq(&self, other: &TextureRect) -> bool
fn eq(&self, other: &TextureRect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextureRect
Auto Trait Implementations§
impl Freeze for TextureRect
impl RefUnwindSafe for TextureRect
impl Send for TextureRect
impl Sync for TextureRect
impl Unpin for TextureRect
impl UnsafeUnpin for TextureRect
impl UnwindSafe for TextureRect
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