Skip to main content

TileInput

Trait TileInput 

Source
pub trait TileInput<T: StyleLayerType>: Find<T> + 'static {
    type Data<'a>: Copy;
}
Expand description

What a layer of the style half T draws from: a kind of tile and what such a tile holds for the layer, its Data.

Required Associated Types§

Source

type Data<'a>: Copy

What a frame’s tile holds for the layer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: StyleLayerType, L: Layout<T>> TileInput<T> for Features<L>

Source§

type Data<'a> = LayerBucket<'a, T, <L as Layout<T>>::Bucket>

Source§

impl<T: StyleLayerType> TileInput<T> for DemTiles

The tiles of a raster-dem source. A tile’s data is its DEM.

Source§

type Data<'a> = &'a DemContents

Source§

impl<T: StyleLayerType> TileInput<T> for NoTiles

Source§

type Data<'a> = !

Source§

impl<T: StyleLayerType> TileInput<T> for RasterTiles

The tiles of a raster source, or of an image source, which draws its one image in the tiles it covers. A tile’s data is its RasterTile.

Source§

type Data<'a> = RasterTile<'a>