Trait IntoCloned

Source
pub trait IntoCloned<'a, T, C>
where Self: Into<C>, T: Send + Sync + Clone + 'a, C: ConcurrentIter<Item = &'a T>,
{ // Provided method fn cloned(self) -> Cloned<'a, T, C> { ... } }
Expand description

Trait converting a concurrent iterator yielding &T to one yielding T by cloning elements.

Provided Methods§

Source

fn cloned(self) -> Cloned<'a, T, C>

Converts this concurrent iterator over references into another concurrent iterator yielding clones of the elements.

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<'a, T, C> IntoCloned<'a, T, C> for C
where T: Send + Sync + Clone + 'a, C: ConcurrentIter<Item = &'a T>,