Trait HasTile

Source
pub trait HasTile {
    // Required method
    fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool;

    // Provided methods
    fn get_available_parent(
        &self,
        coords: WorldTileCoords,
        world: &World,
    ) -> Option<WorldTileCoords> { ... }
    fn get_available_children(
        &self,
        coords: WorldTileCoords,
        world: &World,
        search_depth: usize,
    ) -> Option<Vec<WorldTileCoords>> { ... }
}

Required Methods§

Source

fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool

Provided Methods§

Source

fn get_available_parent( &self, coords: WorldTileCoords, world: &World, ) -> Option<WorldTileCoords>

Source

fn get_available_children( &self, coords: WorldTileCoords, world: &World, search_depth: usize, ) -> Option<Vec<WorldTileCoords>>

Implementations on Foreign Types§

Source§

impl<A: HasTile> HasTile for &A

Source§

fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool

Source§

impl<A: HasTile> HasTile for (A,)

Source§

fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool

Source§

impl<A: HasTile, B: HasTile> HasTile for (A, B)

Source§

fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool

Source§

impl<A: HasTile, B: HasTile, C: HasTile> HasTile for (A, B, C)

Source§

fn has_tile(&self, coords: WorldTileCoords, world: &World) -> bool

Implementors§

Source§

impl HasTile for RasterResources

Source§

impl HasTile for VectorTilesDone

Source§

impl HasTile for ViewTileSources

Source§

impl<Q: ResourceQuery> HasTile for QueryHasTile<Q>
where for<'a> Q::Item<'a>: HasTile,

Source§

impl<Q: Queue<B>, B, V: Pod, I: Pod, TM: Pod, FM: Pod> HasTile for BufferPool<Q, B, V, I, TM, FM>

Source§

impl<T> HasTile for Eventually<T>
where T: HasTile,