SplitScript reference / T!

T!

type constructor

T!

Represents a value or an error.

Write T! to make any value type fallible.

Examples

Store a successful result

let health: u32! = 100

Methods

MemberDescriptionAvailable through
discardErrorConverts a fallible value into an optional value.