diff --git a/rustutils/cpp/include/rustutils/lib.hpp b/rustutils/cpp/include/rustutils/lib.hpp index 91047f0bef8..b6f6d244e71 100644 --- a/rustutils/cpp/include/rustutils/lib.hpp +++ b/rustutils/cpp/include/rustutils/lib.hpp @@ -19,66 +19,66 @@ class String; #define CXXBRIDGE1_RUST_STR class Str final { public: - Str() noexcept; - Str(const String &) noexcept; - Str(const std::string &); - Str(const char *); - Str(const char *, std::size_t); + Str() noexcept; + Str(const String &) noexcept; + Str(const std::string &); + Str(const char *); + Str(const char *, std::size_t); - Str &operator=(const Str &) &noexcept = default; + Str &operator=(const Str &) & noexcept = default; - explicit operator std::string() const; + explicit operator std::string() const; - const char *data() const noexcept; - std::size_t size() const noexcept; - std::size_t length() const noexcept; - bool empty() const noexcept; + const char *data() const noexcept; + std::size_t size() const noexcept; + std::size_t length() const noexcept; + bool empty() const noexcept; - Str(const Str &) noexcept = default; - ~Str() noexcept = default; + Str(const Str &) noexcept = default; + ~Str() noexcept = default; - using iterator = const char *; - using const_iterator = const char *; - const_iterator begin() const noexcept; - const_iterator end() const noexcept; - const_iterator cbegin() const noexcept; - const_iterator cend() const noexcept; + using iterator = const char *; + using const_iterator = const char *; + const_iterator begin() const noexcept; + const_iterator end() const noexcept; + const_iterator cbegin() const noexcept; + const_iterator cend() const noexcept; - bool operator==(const Str &) const noexcept; - bool operator!=(const Str &) const noexcept; - bool operator<(const Str &) const noexcept; - bool operator<=(const Str &) const noexcept; - bool operator>(const Str &) const noexcept; - bool operator>=(const Str &) const noexcept; + bool operator==(const Str &) const noexcept; + bool operator!=(const Str &) const noexcept; + bool operator<(const Str &) const noexcept; + bool operator<=(const Str &) const noexcept; + bool operator>(const Str &) const noexcept; + bool operator>=(const Str &) const noexcept; - void swap(Str &) noexcept; + void swap(Str &) noexcept; private: - class uninit; - Str(uninit) noexcept; - friend impl; + class uninit; + Str(uninit) noexcept; + friend impl; - std::array repr; + std::array repr; }; #endif // CXXBRIDGE1_RUST_STR } // namespace cxxbridge1 } // namespace rust namespace rustutils { - struct ParsedColor; +struct ParsedColor; } namespace rustutils { #ifndef CXXBRIDGE1_STRUCT_rustutils$ParsedColor #define CXXBRIDGE1_STRUCT_rustutils$ParsedColor struct ParsedColor final { - bool success; - float r; - float g; - float b; - float a; + bool success; + float r; + float g; + float b; + float a; - using IsRelocatable = ::std::true_type; + using IsRelocatable = ::std::true_type; }; #endif // CXXBRIDGE1_STRUCT_rustutils$ParsedColor