d3_geo_rs/stream/geometry_collection.rs
1use geo::CoordFloat;
2use geo::GeometryCollection;
3
4use crate::stream::Stream;
5
6use super::Streamable;
7
8impl<T> Streamable for GeometryCollection<T>
9where
10 T: CoordFloat,
11{
12 type T = T;
13
14 #[inline]
15 fn to_stream<EP, SD>(&self, stream: &mut SD)
16 where
17 SD: Stream<EP = EP, T = T>,
18 {
19 for g in self {
20 g.to_stream(stream);
21 }
22 }
23}