pub trait MapOwned: UserData {
type Err: Debug;
// Required method
fn map_owned<F, U>(&self, op: F) -> Result<U, Self::Err>
where F: FnOnce(Self::Target) -> U;
}
Expand description
Trait for wrappers that can be mapped once.
Required Associated Types§
Required 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.