Struct TileIndices

pub struct TileIndices { pub location: TileCoordinates, pub size: Vec2<usize> }

Locates a rectangular section of pixels in an image.

Fields

location: TileCoordinates

Index of the tile.

size: Vec2<usize>

Pixel size of the tile.

Trait Implementations

impl Clone for TileIndices

fn clone(&self) -> Self

impl Copy for TileIndices

impl Debug for TileIndices

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

impl Eq for TileIndices

impl Hash for TileIndices

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

impl PartialEq for TileIndices

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

impl StructuralPartialEq for TileIndices

Auto Trait Implementations

impl Freeze for TileIndices

impl RefUnwindSafe for TileIndices

impl Send for TileIndices

impl Sync for TileIndices

impl Unpin for TileIndices

impl UnsafeUnpin for TileIndices

impl UnwindSafe for TileIndices

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for TileIndices

impl<T> Pointable for TileIndices

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

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

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

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

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