minilua::Bool struct

A lua boolean value.

Supports equality operators and &&, || and ^.

Is hashable.

Public static variables

static static const std::string_view TYPE constexpr
The type of this value as a string.

Constructors, destructors, conversion operators

Bool(bool value) constexpr
Create a Bool from a bool.
operator bool() const explicit
Convert the value to a bool (uses the underlying bool).

Public functions

auto to_literal() const -> std::string -> auto
Converts the value to it's literal representation.

Public variables

bool value
The bool value.