[−][src]Struct mvt::Layer
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).
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,