()

Tuple 43 v393

About This Type

Unit type — encodes to zero bytes.

Represents "nothing" or "void". Used as a placeholder where a type is required but no data is needed.

Encoding: Zero bytes. Nothing is written to the output.

Tuple (0 elements)

Elements

SCALE Encoding

Rule
Unit type — encodes to zero bytes.
Size
0 bytes

Examples

Unit () = ()
(empty)
(none) Zero bytes written

Code Examples

// Unit type () — encodes to zero bytes
// No encoding needed

Referenced By (4)

Type Information

Type ID
43
Kind
Tuple
Runtime
v393