Trait alloc::sync::ToArcSlice

source ·
trait ToArcSlice<T>: Iterator<Item = T> + Sized {
    // Required method
    fn to_arc_slice(self) -> Arc<[T]>;
}
Expand description

Specialization trait used for collecting into Arc<[T]>.

Required Methods§

Implementors§

source§

impl<T, I: Iterator<Item = T>> ToArcSlice<T> for I

source§

impl<T, I: TrustedLen<Item = T>> ToArcSlice<T> for I