|
|
|
|
|
|
114
|
|
114
|
|
|
115
|
impl<'a> ExactSizeIterator for GroupIter<'a> {}
|
115
|
impl<'a> ExactSizeIterator for GroupIter<'a> {}
|
|
116
|
|
116
|
|
|
117
|
-/// An iterator over the nodes in a `Group`.
|
|
|
|
|
|
117
|
+/// An iterator over the nodes in a `PrimitiveGroup`.
|
|
118
|
pub struct GroupNodeIter<'a> {
|
118
|
pub struct GroupNodeIter<'a> {
|
|
119
|
block: &'a osmformat::PrimitiveBlock,
|
119
|
block: &'a osmformat::PrimitiveBlock,
|
|
120
|
nodes: std::slice::Iter<'a, osmformat::Node>,
|
120
|
nodes: std::slice::Iter<'a, osmformat::Node>,
|
|
|
|
|
|
|
148
|
|
148
|
|
|
149
|
impl<'a> ExactSizeIterator for GroupNodeIter<'a> {}
|
149
|
impl<'a> ExactSizeIterator for GroupNodeIter<'a> {}
|
|
150
|
|
150
|
|
|
151
|
-/// An iterator over the ways in a `Group`.
|
|
|
|
|
|
151
|
+/// An iterator over the ways in a `PrimitiveGroup`.
|
|
152
|
pub struct GroupWayIter<'a> {
|
152
|
pub struct GroupWayIter<'a> {
|
|
153
|
block: &'a osmformat::PrimitiveBlock,
|
153
|
block: &'a osmformat::PrimitiveBlock,
|
|
154
|
ways: std::slice::Iter<'a, osmformat::Way>,
|
154
|
ways: std::slice::Iter<'a, osmformat::Way>,
|
|
|
|
|
|
|
182
|
|
182
|
|
|
183
|
impl<'a> ExactSizeIterator for GroupWayIter<'a> {}
|
183
|
impl<'a> ExactSizeIterator for GroupWayIter<'a> {}
|
|
184
|
|
184
|
|
|
185
|
-/// An iterator over the relations in a `Group`.
|
|
|
|
|
|
185
|
+/// An iterator over the relations in a `PrimitiveGroup`.
|
|
186
|
pub struct GroupRelationIter<'a> {
|
186
|
pub struct GroupRelationIter<'a> {
|
|
187
|
block: &'a osmformat::PrimitiveBlock,
|
187
|
block: &'a osmformat::PrimitiveBlock,
|
|
188
|
rels: std::slice::Iter<'a, osmformat::Relation>,
|
188
|
rels: std::slice::Iter<'a, osmformat::Relation>,
|