6#include "../result.hpp"
28 Utf8(
const char* str) : value(str) {}
30 const char* c_str()
const {
37 Utf8(std::string value_) : value(std::move(value_)) {}
39 Utf8& operator=(std::string value_) {
40 value = std::move(value_);
52 struct Loggable<datatypes::Utf8> {
53 static constexpr const char Name[] =
"rerun.datatypes.Utf8";
56 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
60 arrow::StringBuilder* builder,
const datatypes::Utf8* elements,
size_t num_elements
64 static Result<std::shared_ptr<arrow::Array>> to_arrow(
65 const datatypes::Utf8* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21
Utf8(const char *str)
Construct a Utf8 from null-terminated UTF-8.
Definition utf8.hpp:28