pub struct Tile<M> {
pub id: CellId,
pub layers: BTreeMap<String, Layer<M>>,
pub transformed: bool,
}
Expand description
Tile Class to contain the tile information for splitting or simplifying
Fields§
§id: CellId
the tile id
layers: BTreeMap<String, Layer<M>>
the tile’s layers
transformed: bool
whether the tile feature geometry has been transformed
Implementations§
Source§impl<M: HasLayer + Clone> Tile<M>
impl<M: HasLayer + Clone> Tile<M>
Sourcepub fn add_feature(&mut self, feature: VectorFeature<M>, layer: Option<String>)
pub fn add_feature(&mut self, feature: VectorFeature<M>, layer: Option<String>)
Add a feature to the tile
Auto Trait Implementations§
impl<M> Freeze for Tile<M>
impl<M> RefUnwindSafe for Tile<M>where
M: RefUnwindSafe,
impl<M> Send for Tile<M>where
M: Send,
impl<M> Sync for Tile<M>where
M: Sync,
impl<M> Unpin for Tile<M>
impl<M> UnwindSafe for Tile<M>where
M: RefUnwindSafe,
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