pub struct PolygonView<'a, V: PolyVertex, A = ()> { /* private fields */ }Expand description
A borrowed view of one clipped polygon in one tile: its exterior ring, then its holes, and the attribute of the feature it comes from.
Implementations§
Source§impl<'a, V: PolyVertex, A> PolygonView<'a, V, A>
impl<'a, V: PolyVertex, A> PolygonView<'a, V, A>
Sourcepub fn attr(&self) -> &'a A
pub fn attr(&self) -> &'a A
The attribute of the feature this polygon comes from, as passed to add_feature_with.
Sourcepub fn iter_rings(
&self,
) -> impl Iterator<Item = RingView<'a, V>> + use<'a, V, A>
pub fn iter_rings( &self, ) -> impl Iterator<Item = RingView<'a, V>> + use<'a, V, A>
Iterate the polygon’s rings (exterior first, then holes), each closed and in the tile-local frame.
Trait Implementations§
Source§impl<V: PolyVertex, A> Clone for PolygonView<'_, V, A>
impl<V: PolyVertex, A> Clone for PolygonView<'_, V, A>
impl<V: PolyVertex, A> Copy for PolygonView<'_, V, A>
Auto Trait Implementations§
impl<'a, V, A> Freeze for PolygonView<'a, V, A>
impl<'a, V, A> RefUnwindSafe for PolygonView<'a, V, A>
impl<'a, V, A> Send for PolygonView<'a, V, A>
impl<'a, V, A> Sync for PolygonView<'a, V, A>
impl<'a, V, A> Unpin for PolygonView<'a, V, A>
impl<'a, V, A> UnsafeUnpin for PolygonView<'a, V, A>
impl<'a, V, A> UnwindSafe for PolygonView<'a, V, A>
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