[][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
// ...

Implementations

impl Layer[src]

pub fn name(&self) -> &str[src]

Get the layer name.

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 RefUnwindSafe for Layer

impl Send for Layer

impl Sync for Layer

impl Unpin for Layer

impl UnwindSafe for Layer

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.