Lines Matching defs:const
7 void cxxbridge1$cxx_string$init(std::string *s, const std::uint8_t *ptr,
9 new (s) std::string(reinterpret_cast<const char *>(ptr), len);
17 const char *cxxbridge1$cxx_string$data(const std::string &s) noexcept {
21 std::size_t cxxbridge1$cxx_string$length(const std::string &s) noexcept {
32 void cxxbridge1$cxx_string$push(std::string &s, const std::uint8_t *ptr,
34 s.append(reinterpret_cast<const char *>(ptr), len);
40 const rust::String &other) noexcept;
41 bool cxxbridge1$string$from_utf8(rust::String *self, const char *ptr,
43 void cxxbridge1$string$from_utf8_lossy(rust::String *self, const char *ptr,
45 bool cxxbridge1$string$from_utf16(rust::String *self, const char16_t *ptr,
47 void cxxbridge1$string$from_utf16_lossy(rust::String *self, const char16_t *ptr,
50 const char *cxxbridge1$string$ptr(const rust::String *self) noexcept;
51 std::size_t cxxbridge1$string$len(const rust::String *self) noexcept;
52 std::size_t cxxbridge1$string$capacity(const rust::String *self) noexcept;
60 void cxxbridge1$str$ref(rust::Str *self, const rust::String *string) noexcept;
61 bool cxxbridge1$str$from(rust::Str *self, const char *ptr,
63 const char *cxxbridge1$str$ptr(const rust::Str *self) noexcept;
64 std::size_t cxxbridge1$str$len(const rust::Str *self) noexcept;
67 void cxxbridge1$slice$new(void *self, const void *ptr,
69 void *cxxbridge1$slice$ptr(const void *self) noexcept;
70 std::size_t cxxbridge1$slice$len(const void *self) noexcept;
77 void panic [[noreturn]] (const char *msg) {
86 template void panic<std::out_of_range> [[noreturn]] (const char *msg);
89 static bool is_aligned(const void *ptr) noexcept {
96 String::String(const String &other) noexcept {
106 static void initString(String *self, const char *s, std::size_t len) {
112 static void initString(String *self, const char16_t *s, std::size_t len) {
118 String::String(const std::string &s) { initString(this, s.data(), s.length()); }
120 String::String(const char *s) {
125 String::String(const char *s, std::size_t len) {
128 s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
132 String::String(const char16_t *s) {
138 String::String(const char16_t *s, std::size_t len) {
142 s == nullptr && len == 0 ? reinterpret_cast<const char16_t *>(2)
149 String::String(lossy_t, const char *s, std::size_t len) noexcept {
151 this, s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
155 String::String(lossy_t, const char16_t *s, std::size_t len) noexcept {
158 s == nullptr && len == 0 ? reinterpret_cast<const char16_t *>(2) : s,
162 String String::lossy(const std::string &s) noexcept {
166 String String::lossy(const char *s) noexcept {
171 String String::lossy(const char *s, std::size_t len) noexcept {
176 String String::lossy(const char16_t *s) noexcept {
182 String String::lossy(const char16_t *s, std::size_t len) noexcept {
188 String &String::operator=(const String &other) &noexcept {
203 String::operator std::string() const {
207 const char *String::data() const noexcept {
211 std::size_t String::size() const noexcept {
215 std::size_t String::length() const noexcept {
219 bool String::empty() const noexcept { return this->size() == 0; }
221 const char *String::c_str() noexcept {
229 std::size_t String::capacity() const noexcept {
245 String::const_iterator String::begin() const noexcept { return this->cbegin(); }
247 String::const_iterator String::end() const noexcept { return this->cend(); }
249 String::const_iterator String::cbegin() const noexcept { return this->data(); }
251 String::const_iterator String::cend() const noexcept {
255 bool String::operator==(const String &rhs) const noexcept {
259 bool String::operator!=(const String &rhs) const noexcept {
263 bool String::operator<(const String &rhs) const noexcept {
267 bool String::operator<=(const String &rhs) const noexcept {
271 bool String::operator>(const String &rhs) const noexcept {
275 bool String::operator>=(const String &rhs) const noexcept {
284 String::String(unsafe_bitcopy_t, const String &bits) noexcept
287 std::ostream &operator<<(std::ostream &os, const String &s) {
294 Str::Str(const String &s) noexcept { cxxbridge1$str$ref(this, &s); }
296 static void initStr(Str *self, const char *ptr, std::size_t len) {
302 Str::Str(const std::string &s) { initStr(this, s.data(), s.length()); }
304 Str::Str(const char *s) {
309 Str::Str(const char *s, std::size_t len) {
312 s == nullptr && len == 0 ? reinterpret_cast<const char *>(1) : s,
316 Str::operator std::string() const {
320 const char *Str::data() const noexcept { return cxxbridge1$str$ptr(this); }
322 std::size_t Str::size() const noexcept { return cxxbridge1$str$len(this); }
324 std::size_t Str::length() const noexcept { return this->size(); }
326 bool Str::empty() const noexcept { return this->size() == 0; }
328 Str::const_iterator Str::begin() const noexcept { return this->cbegin(); }
330 Str::const_iterator Str::end() const noexcept { return this->cend(); }
332 Str::const_iterator Str::cbegin() const noexcept { return this->data(); }
334 Str::const_iterator Str::cend() const noexcept {
338 bool Str::operator==(const Str &rhs) const noexcept {
343 bool Str::operator!=(const Str &rhs) const noexcept { return !(*this == rhs); }
345 bool Str::operator<(const Str &rhs) const noexcept {
350 bool Str::operator<=(const Str &rhs) const noexcept {
367 bool Str::operator>(const Str &rhs) const noexcept { return rhs < *this; }
369 bool Str::operator>=(const Str &rhs) const noexcept { return rhs <= *this; }
376 std::ostream &operator<<(std::ostream &os, const Str &s) {
381 void sliceInit(void *self, const void *ptr, std::size_t len) noexcept {
385 void *slicePtr(const void *self) noexcept { return cxxbridge1$slice$ptr(self); }
387 std::size_t sliceLen(const void *self) noexcept {
410 "trivial Str(const Str &)");
412 "trivial operator=(const Str &)");
416 std::is_trivially_copy_constructible<Slice<const std::uint8_t>>::value,
417 "trivial Slice(const Slice &)");
419 std::is_trivially_move_constructible<Slice<const std::uint8_t>>::value,
422 std::is_trivially_copy_assignable<Slice<const std::uint8_t>>::value,
423 "trivial Slice::operator=(const Slice &) for const slices");
425 std::is_trivially_move_assignable<Slice<const std::uint8_t>>::value,
427 static_assert(std::is_trivially_destructible<Slice<const std::uint8_t>>::value,
431 "trivial Slice(const Slice &)");
435 "delete Slice::operator=(const Slice &) for mut slices");
442 Vec<const std::uint8_t>::iterator>::value,
443 "Vec<T>::const_iterator == Vec<const T>::iterator");
444 static_assert(std::is_same<Vec<const std::uint8_t>::const_iterator,
445 Vec<const std::uint8_t>::iterator>::value,
446 "Vec<const T>::const_iterator == Vec<const T>::iterator");
451 static const char *errorCopy(const char *ptr, std::size_t len) {
458 const char *cxxbridge1$error(const char *ptr, std::size_t len) noexcept {
463 Error::Error(const Error &other)
476 Error &Error::operator=(const Error &other) & {
499 const char *Error::what() const noexcept { return this->msg; }
518 repr::PtrLen cxxbridge1$exception(const char *, std::size_t len) noexcept;
540 void operator()(const char *) noexcept;
541 void operator()(const std::string &) noexcept;
544 void Fail::operator()(const char *catch$) noexcept {
548 void Fail::operator()(const std::string &catch$) noexcept {
572 const std::string *cxxbridge1$unique_ptr$std$string$get(
573 const std::unique_ptr<std::string> &ptr) noexcept {
587 const std::size_t kMaxExpectedWordsInString = 8;
596 const std::vector<CXX_TYPE> &s) noexcept { \
612 const std::vector<CXX_TYPE> \
614 const std::unique_ptr<std::vector<CXX_TYPE>> &ptr) noexcept { \
645 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
647 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
648 const CXX_TYPE *cxxbridge1$rust_vec$##RUST_TYPE##$data( \
649 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
667 std::size_t Vec<CXX_TYPE>::size() const noexcept { \
671 std::size_t Vec<CXX_TYPE>::capacity() const noexcept { \
675 const CXX_TYPE *Vec<CXX_TYPE>::data() const noexcept { \
706 const std::shared_ptr<CXX_TYPE> &self, \
710 const CXX_TYPE *cxxbridge1$std$shared_ptr$##RUST_TYPE##$get( \
711 const std::shared_ptr<CXX_TYPE> &self) noexcept { \
715 const std::shared_ptr<CXX_TYPE> *self) noexcept { \
725 const std::weak_ptr<CXX_TYPE> &self, \
730 const std::shared_ptr<CXX_TYPE> &shared, \
735 const std::weak_ptr<CXX_TYPE> &weak, \
740 const std::weak_ptr<CXX_TYPE> *self) noexcept { \