pub struct OpenVectorLayer {
pub version: u16,
pub name: String,
pub extent: Extent,
pub features: Vec<OpenVectorFeature>,
/* private fields */
}
Expand description
The Open Vector Layer class represents a layer in an Open Vector Tile. Contains an extent, name, version, and features. The features will utilize the layer extent to decode geometry.
Fields§
§version: u16
the version of the vector tile
name: String
the name of the layer
extent: Extent
the extent of the vector layer
features: Vec<OpenVectorFeature>
the features in the layer
Implementations§
Source§impl OpenVectorLayer
impl OpenVectorLayer
Sourcepub fn new(cache: Rc<RefCell<ColumnCacheReader>>) -> OpenVectorLayer
pub fn new(cache: Rc<RefCell<ColumnCacheReader>>) -> OpenVectorLayer
Create a new OpenVectorLayer
Trait Implementations§
Source§impl Debug for OpenVectorLayer
impl Debug for OpenVectorLayer
Source§impl ProtoRead for OpenVectorLayer
impl ProtoRead for OpenVectorLayer
Source§impl VectorLayerMethods for OpenVectorLayer
impl VectorLayerMethods for OpenVectorLayer
Auto Trait Implementations§
impl Freeze for OpenVectorLayer
impl !RefUnwindSafe for OpenVectorLayer
impl !Send for OpenVectorLayer
impl !Sync for OpenVectorLayer
impl Unpin for OpenVectorLayer
impl !UnwindSafe for OpenVectorLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more