#void #unstable #stable #never

no-std never

A stable version of the unstable never type (!)

2 unstable releases

0.1.0 Mar 20, 2020
0.0.0 Jul 30, 2018

#469 in Rust patterns

Download history 1255/week @ 2021-09-29 1184/week @ 2021-10-06 1191/week @ 2021-10-13 1538/week @ 2021-10-20 1501/week @ 2021-10-27 1149/week @ 2021-11-03 1336/week @ 2021-11-10 1364/week @ 2021-11-17 1502/week @ 2021-11-24 1770/week @ 2021-12-01 1468/week @ 2021-12-08 1950/week @ 2021-12-15 1227/week @ 2021-12-22 1765/week @ 2021-12-29 1641/week @ 2022-01-05 2088/week @ 2022-01-12

6,972 downloads per month
Used in 18 crates (9 directly)

BSD-3-Clause

5KB
66 lines


lib.rs:

The never type.

This crate defines [Never], which is a type that can never be constructed (in type theory parlance, it is "uninhabited"). It is a stable version of the currently-unstable ! type from the standard library.

By default, this crate links against std. This is enabled via the std feature, which is on by default. To make this crate no_std, disable default features.

No runtime deps

Features

  • std
Vu^