SplitScript reference / None

None

Built-in type

None

Stores the single unit value None.

None is the ordinary return type for procedures and functions without a returned data value. Plain unit parameters, results, locals, globals, and async completions are erased from the physical Wasm representation. The same value converts to the empty side of T?, while Some(None) remains a present unit value.

Examples

Use None

let unit: None = None

Capabilities

MemberDescriptionAvailable through
DebugProduces an unambiguous structural representation of a value.
EquatableSupports equality comparison.

Operators

MemberDescriptionAvailable through
==Reports whether this value and another value are equal.Available through Equatable
!=Reports whether this value and another value differ.Available through Equatable

Methods

MemberDescriptionAvailable through
debugStringConverts the receiver to its unambiguous structural representation.Available through Debug
toStringConverts the receiver to its user-facing string representation.Available through Display