pub trait OptionExt<T> {
// Required method
fn try_map<'tcx, U>(
self,
f: impl FnOnce(T) -> InterpResult<'tcx, U>,
) -> InterpResult<'tcx, Option<U>>;
}Required Methods§
fn try_map<'tcx, U>( self, f: impl FnOnce(T) -> InterpResult<'tcx, U>, ) -> InterpResult<'tcx, Option<U>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".