SplitScript reference / char

char

Built-in type

char

Stores one Unicode scalar value.

Character literals use single quotes and contain exactly one Unicode scalar value. A char is distinct from u32, implements Display and equality, converts losslessly to u32 with as, and has no implicit process-memory encoding.

Examples

Use char

let marker: char = 'ß'

Capabilities

MemberDescriptionAvailable through
DebugProduces an unambiguous structural representation of a value.
DisplaySupports conversion to a user-facing textual representation.
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