ialloc/boxed/abox_extend.rs
1use crate::boxed::ABox;
2use crate::fat::Free;
3
4
5
6#[cfg(feature = "alloc")]
7#[cfg(global_oom_handling)]
8impl<A: Free> Extend<ABox<str, A>> for alloc::string::String {
9 fn extend<I: IntoIterator<Item = ABox<str, A>>>(&mut self, iter: I) {
10 iter.into_iter().for_each(move |s| self.push_str(&s));
11 }
12}