Skip to main content

Never

Type Alias Never 

Source
pub type Never = !;
Expand description

A more readable placeholder for a stable Never (!) type.

It is recommended to use this in port directions and actor types, which do not expect any messages, instead of the unit type (). This way the compiler should correctly identify any handlers enforced to be implemented by the API as dead code and eliminate them, resulting in smaller code sizes.