Function never

Source
pub fn never<T>(never: Infallible) -> T
Expand description

A function that can never be called.

This is useful to turn generic types into anything you want by coercing them into a type with no possible values.