pub struct FeatureView<'a, V: Vertex, A = ()> { /* private fields */ }Expand description
A borrowed view of one feature’s clipped polylines within a tile, yielded by
TileView::iter_features / SlicerOne::iter_features.
Implementations§
Source§impl<'a, V: Vertex, A> FeatureView<'a, V, A>
impl<'a, V: Vertex, A> FeatureView<'a, V, A>
Sourcepub fn attr(&self) -> &'a A
pub fn attr(&self) -> &'a A
This feature’s per-feature attribute in this tile — the value passed to
add_feature_with, duplicated onto every tile the feature
touches. With the default A = () this is a reference to the unit value.
Sourcepub fn iter_polylines(&self) -> impl Iterator<Item = &'a [V]> + use<'a, V, A>
pub fn iter_polylines(&self) -> impl Iterator<Item = &'a [V]> + use<'a, V, A>
Iterate this feature’s polylines (runs) in this tile, each a vertex slice in the tile’s local frame. A feature yields several polylines where the input left the tile and re-entered.
Auto Trait Implementations§
impl<'a, V, A> Freeze for FeatureView<'a, V, A>
impl<'a, V, A> RefUnwindSafe for FeatureView<'a, V, A>
impl<'a, V, A> Send for FeatureView<'a, V, A>
impl<'a, V, A> Sync for FeatureView<'a, V, A>
impl<'a, V, A> Unpin for FeatureView<'a, V, A>
impl<'a, V, A> UnsafeUnpin for FeatureView<'a, V, A>
impl<'a, V, A> UnwindSafe for FeatureView<'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