Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::TextError Struct Reference

Owning error value, independent of the failed input's lifetime. More...

#include <text.hpp>

Public Member Functions

bool operator== (const TextError &other) const noexcept=default
 Compare category and byte offset.

Public Attributes

TextErrorKind kind {}
 Failure category.
std::size_t byte_offset {}
 Byte offset of an invalid sequence, rejected cluster or cursor. Input-limit and invalid-policy errors use zero.

Detailed Description

Owning error value, independent of the failed input's lifetime.

Member Function Documentation

◆ operator==()

bool portals::TextError::operator== ( const TextError & other) const
defaultnoexcept

Compare category and byte offset.

Parameters
otherValue whose corresponding fields are compared.
Returns
True when every compared field is equal; false otherwise.

The documentation for this struct was generated from the following file: