# HasTile in maplibre::render::tile_view_pattern - Rust
API documentation for the Rust `HasTile` trait in crate `maplibre`.

# Trait maplibre::render::tile_view_pattern::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,