pub enum TilesetLocation {
Map(usize),
Template(Arc<Tileset>),
}Expand description
The location of the tileset this tile is in
Tilesets can be contained within either a map or a template.
Variants§
Map(usize)
Index into the Map’s tileset list, guaranteed to be a valid index of the map tileset container.
Template(Arc<Tileset>)
Arc of the tileset itself if and only if this location is from a template.
Trait Implementations§
Source§impl Clone for TilesetLocation
impl Clone for TilesetLocation
Source§fn clone(&self) -> TilesetLocation
fn clone(&self) -> TilesetLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TilesetLocation
impl Debug for TilesetLocation
Source§impl PartialEq for TilesetLocation
impl PartialEq for TilesetLocation
impl StructuralPartialEq for TilesetLocation
Auto Trait Implementations§
impl Freeze for TilesetLocation
impl RefUnwindSafe for TilesetLocation
impl Send for TilesetLocation
impl Sync for TilesetLocation
impl Unpin for TilesetLocation
impl UnwindSafe for TilesetLocation
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