(iter: I)
| 543 | /// ``` |
| 544 | impl<'a, T: RunEndIndexType> FromIterator<Option<&'a str>> for RunArray<T> { |
| 545 | fn from_iter<I: IntoIterator<Item = Option<&'a str>>>(iter: I) -> Self { |
| 546 | let it = iter.into_iter(); |
| 547 | let (lower, _) = it.size_hint(); |
| 548 | let mut builder = StringRunBuilder::with_capacity(lower, 256); |
| 549 | it.for_each(|i| { |
| 550 | builder.append_option(i); |
| 551 | }); |
| 552 | |
| 553 | builder.finish() |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | /// Constructs a `RunArray` from an iterator of strings. |
nothing calls this directly
no test coverage detected