pub trait Map: UserData {
type Err: Error;
// Required method
fn map<F, U>(&self, op: F) -> Result<U, Self::Err>
where F: FnOnce(&Self::Target) -> U;
}
Expand description
Trait for wrappers that can be mapped immutably.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.