cheatah
Class

parsers::json::Boolean

A JSON true / false token, constructed from its bool: Boolean{true}.

Functions

fn Boolean(bool value) source#

Construct from a bool.

Parameters
value

the boolean value (true or false).

Complexity

O(1).

Allocation

none.

fn bool value() const noexcept source#

Read the boolean value (fixed for the token's lifetime; no setter).

Returns

the stored bool.

Complexity

O(1).

Allocation

none.

Constants & variables

var bool value_ source#