v8

Trait MapFnTo

Source
pub trait MapFnTo<T, Tag = DefaultTag>
where Self: UnitType, T: Sized,
{ // Required method fn mapping() -> T; // Provided method fn map_fn_to(self) -> T { ... } }

Required Methods§

Source

fn mapping() -> T

Provided Methods§

Source

fn map_fn_to(self) -> T

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§

Source§

impl<F, T, Tag> MapFnTo<T, Tag> for F
where Self: UnitType, T: MapFnFrom<F, Tag>,