Trait VectorLayerMethods

Source
pub trait VectorLayerMethods {
    // Required methods
    fn version(&self) -> u16;
    fn name(&self) -> String;
    fn extent(&self) -> usize;
    fn feature(&mut self, i: usize) -> Option<&mut dyn VectorFeatureMethods>;
    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
}
Expand description

Methods that all vector layers should have

Required Methods§

Source

fn version(&self) -> u16

the version of the vector tile layer.

Source

fn name(&self) -> String

the name of the layer

Source

fn extent(&self) -> usize

the extent of the vector tile (only 512, 1_024, 2_048, 4_096, and 8_192 are supported for the open spec)

Source

fn feature(&mut self, i: usize) -> Option<&mut dyn VectorFeatureMethods>

grab a feature from the layer

Source

fn len(&self) -> usize

length (layer count)

Source

fn is_empty(&self) -> bool

empty (layer count is 0)

Implementors§