Trait 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]>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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