pub trait MapIntoExt: Ranked {
// Provided methods
fn map_into<M, U>(&self, f: impl Fn(&Self::Item) -> U) -> M
where Self: Sized,
M: BuildFromRegion<U> { ... }
fn try_map_into<M, U, E>(
self,
f: impl Fn(&Self::Item) -> Result<U, E>,
) -> Result<M, E>
where Self: Sized,
M: BuildFromRegion<U> { ... }
}
Expand description
Map into any mesh M
.
Provided Methods§
fn map_into<M, U>(&self, f: impl Fn(&Self::Item) -> U) -> Mwhere
Self: Sized,
M: BuildFromRegion<U>,
fn try_map_into<M, U, E>(
self,
f: impl Fn(&Self::Item) -> Result<U, E>,
) -> Result<M, E>where
Self: Sized,
M: BuildFromRegion<U>,
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§
impl<T: Ranked> MapIntoExt for T
Blanket impl: enables .map_into(...)
and .try_map_into`` on any
Ranked`.