pub trait MapIntern {
type Item;
// Required method
fn map_intern<F>(self, f: F) -> Self
where F: FnMut(Self::Item) -> Self::Item;
}Expand description
Similar to Iterator::map, but for container-like types that keep their shape.
Required Associated Types§
Required Methods§
Sourcefn map_intern<F>(self, f: F) -> Self
fn map_intern<F>(self, f: F) -> Self
Apply f to each item, producing a new container of the same type.
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.