pub struct SourceRect {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Available on crate feature
kitty-graphics only.Expand description
The pixel position and size of a source rectangle.
Fields§
§x: u32The x origin in pixels.
y: u32The y origin in pixels.
width: u32The width in pixels.
height: u32The height in pixels.
Trait Implementations§
Source§impl Clone for SourceRect
impl Clone for SourceRect
Source§fn clone(&self) -> SourceRect
fn clone(&self) -> SourceRect
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 SourceRect
Source§impl Debug for SourceRect
impl Debug for SourceRect
Source§impl Default for SourceRect
impl Default for SourceRect
Source§fn default() -> SourceRect
fn default() -> SourceRect
Returns the “default value” for a type. Read more
impl Eq for SourceRect
Source§impl PartialEq for SourceRect
impl PartialEq for SourceRect
Source§fn eq(&self, other: &SourceRect) -> bool
fn eq(&self, other: &SourceRect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceRect
Auto Trait Implementations§
impl Freeze for SourceRect
impl RefUnwindSafe for SourceRect
impl Send for SourceRect
impl Sync for SourceRect
impl Unpin for SourceRect
impl UnsafeUnpin for SourceRect
impl UnwindSafe for SourceRect
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