[][src]Struct mvt::Layer

pub struct Layer { /* fields omitted */ }

A layer is a set of related features in a tile.

Example

use mvt::Tile;
let mut tile = Tile::new(4096);
let layer = tile.create_layer("First Layer");
// ...
// set up the layer
// ...

Methods

impl Layer
[src]

pub fn num_features(&self) -> usize
[src]

Get number of features (count).

pub fn into_feature(self, geom_data: GeomData) -> Feature
[src]

Create a new feature, giving it ownership of the layer.

  • geom_data Geometry data (consumed by this method).

Auto Trait Implementations

impl Send for Layer

impl Sync for Layer

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]