minilua::String struct

A lua string value.

Supports comparison operators.

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

String(std::string value)
Create a String from a std::string.
operator bool() const explicit
Convert the value to a bool (always true).

Public functions

auto to_literal() const -> std::string -> auto
Converts the value to it's literal representation.
auto is_valid_identifier() const -> bool -> auto
Check if the String is a valid lua identifier.

Friends

void swap(String& self, String& other)
Swap function.