Lines Matching refs:rust
37 // rust::String
38 void cxxbridge1$string$new(rust::String *self) noexcept;
39 void cxxbridge1$string$clone(rust::String *self,
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,
49 void cxxbridge1$string$drop(rust::String *self) noexcept;
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;
53 void cxxbridge1$string$reserve_additional(rust::String *self,
55 void cxxbridge1$string$reserve_total(rust::String *self,
58 // rust::Str
59 void cxxbridge1$str$new(rust::Str *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;
66 // rust::Slice
73 namespace rust {
108 panic<std::invalid_argument>("data for rust::String is not utf-8");
114 panic<std::invalid_argument>("data for rust::String is not utf-16");
256 return rust::Str(*this) == rust::Str(rhs);
260 return rust::Str(*this) != rust::Str(rhs);
264 return rust::Str(*this) < rust::Str(rhs);
268 return rust::Str(*this) <= rust::Str(rhs);
272 return rust::Str(*this) > rust::Str(rhs);
276 return rust::Str(*this) >= rust::Str(rhs);
298 panic<std::invalid_argument>("data for rust::Str is not utf-8");
392 // https://rust-lang.github.io/unsafe-code-guidelines/layout/scalars.html#isize-and-usize
404 static_assert(sizeof(rust::isize) == sizeof(std::intptr_t),
406 static_assert(alignof(rust::isize) == alignof(std::intptr_t),
524 // define a specialized impl of rust::Vec<size_t>, because in the former case it
531 typename std::conditional<std::is_same<rust::isize, int64_t>::value ||
532 std::is_same<rust::isize, int32_t>::value,
533 struct isize_ignore, rust::isize>::type;
554 } // namespace rust
641 rust::Vec<CXX_TYPE> *ptr) noexcept; \
643 rust::Vec<CXX_TYPE> *ptr) noexcept; \
645 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
647 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
649 const rust::Vec<CXX_TYPE> *ptr) noexcept; \
651 rust::Vec<CXX_TYPE> *ptr, std::size_t new_cap) noexcept; \
652 void cxxbridge1$rust_vec$##RUST_TYPE##$set_len(rust::Vec<CXX_TYPE> *ptr, \
654 void cxxbridge1$rust_vec$##RUST_TYPE##$truncate(rust::Vec<CXX_TYPE> *ptr, \
701 reinterpret_cast<CXX_TYPE *>(new rust::MaybeUninit<CXX_TYPE>); \
760 MACRO(isize, rust::isize)
770 MACRO(usize, rust::detail::usize_if_unique) \
771 MACRO(isize, rust::detail::isize_if_unique) \
772 MACRO(string, rust::String) \
773 MACRO(str, rust::Str)
779 MACRO(isize, rust::isize) \
789 namespace rust {
793 } // namespace rust