Trait alloc::rc::ToRcSlice

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

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

Required Methods§

source

fn to_rc_slice(self) -> Rc<[T]>

Implementors§

source§

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

source§

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