6#include "../result.hpp"
26 Utf8(
const char* utf8_) : value(utf8_) {}
44 Utf8(std::string value_) : value(std::move(value_)) {}
47 value = std::move(value_);
59 struct Loggable<datatypes::Utf8> {
60 static constexpr std::string_view ComponentType =
"rerun.datatypes.Utf8";
63 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
66 static Result<std::shared_ptr<arrow::Array>> to_arrow(
67 const datatypes::Utf8* instances,
size_t num_instances
72 arrow::StringBuilder* builder,
const datatypes::Utf8* elements,
size_t num_elements
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:99
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:82
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21
Utf8(const char *utf8_)
Construct from a C string.
Definition utf8.hpp:26
Utf8 & operator=(const char *utf8_)
Explicit copy assignment from a C string to avoid ambiguity in some cases.
Definition utf8.hpp:29
const char * c_str() const
Returns a pointer to the underlying C string.
Definition utf8.hpp:35