Trait IntoCopied

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

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

Provided Methods§

Source

fn copied(self) -> Copied<'a, T, C>

Converts this concurrent iterator over references into another concurrent iterator yielding copies 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> IntoCopied<'a, T, C> for C
where T: Send + Sync + Copy + 'a, C: ConcurrentIter<Item = &'a T>,