Skip to main content

NONE_CASE

Constant NONE_CASE 

Source
pub const NONE_CASE: CaseSchema;
Expand description

None, the empty case of Option.

It is the one builtin case with no payload, and therefore the one written as a bare name rather than as a call — which is why both ends ask for this constant by itself: the checker to give the name a type, the interpreter to build the value, and both to say that None(...) is a mistake.