Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 10, 2025
1 parent 671a41f commit 8ed4303
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions rustutils/cpp/include/rustutils/lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Str>;
class uninit;
Str(uninit) noexcept;
friend impl<Str>;

std::array<std::uintptr_t, 2> repr;
std::array<std::uintptr_t, 2> 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

Expand Down

0 comments on commit 8ed4303

Please sign in to comment.