#never #void #unstable #stable

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

#796 in Rust patterns

Download history 3023/week @ 2022-10-07 3101/week @ 2022-10-14 2878/week @ 2022-10-21 3531/week @ 2022-10-28 4370/week @ 2022-11-04 3870/week @ 2022-11-11 4420/week @ 2022-11-18 3260/week @ 2022-11-25 2339/week @ 2022-12-02 2409/week @ 2022-12-09 2759/week @ 2022-12-16 3258/week @ 2022-12-23 3735/week @ 2022-12-30 3429/week @ 2023-01-06 3492/week @ 2023-01-13 3289/week @ 2023-01-20

14,987 downloads per month
Used in 37 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