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§
Sourcefn extent(&self) -> usize
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)
Sourcefn feature(&mut self, i: usize) -> Option<&mut dyn VectorFeatureMethods>
fn feature(&mut self, i: usize) -> Option<&mut dyn VectorFeatureMethods>
grab a feature from the layer