pub trait Map: Sized {
// Provided method
fn map<I, R, F>(self, func: F) -> Mapped<Self, I, R, F>
where Self: Typed<Output = I>,
I: Into<Variant>,
R: Into<Variant>,
F: Fn(I) -> R + Clone { ... }
}
Expand description
Mappable cast trait.
Provided Methods§
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.