Skip to content

Bool

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

to_int

1 for true, 0 for false.

public fun to_int(): int

parse

Parses true or false (case-sensitive, matching language literals).

public static fun parse(borrow text: string): Result<bool, ParseError>