Skip to main content

NeverMapIntoExtension

Trait NeverMapIntoExtension 

Source
pub trait NeverMapIntoExtension {
    // Required method
    fn map_into<T>() -> impl Fn(Infallible) + Signal + Clone;
}

Required Methods§

Source

fn map_into<T>() -> impl Fn(Infallible) + Signal + Clone

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.

Implementations on Foreign Types§

Source§

impl NeverMapIntoExtension for Infallible

Source§

fn map_into<T>() -> impl Fn(Infallible) + Signal + Clone

A mapper for the never type into anything. Since Never cannot be created, nothing has to be actually converted.

The implementation is just: |_| unreachable!().

Implementors§