Lines Matching refs:self
38 void cxxbridge1$string$new(rust::String *self) noexcept;
39 void cxxbridge1$string$clone(rust::String *self,
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,
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;
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;
106 static void initString(String *self, const char *s, std::size_t len) {
107 if (!cxxbridge1$string$from_utf8(self, s, len)) {
112 static void initString(String *self, const char16_t *s, std::size_t len) {
113 if (!cxxbridge1$string$from_utf16(self, s, len)) {
296 static void initStr(Str *self, const char *ptr, std::size_t len) {
297 if (!cxxbridge1$str$from(self, ptr, len)) {
381 void sliceInit(void *self, const void *ptr, std::size_t len) noexcept {
382 cxxbridge1$slice$new(self, ptr, len);
385 void *slicePtr(const void *self) noexcept { return cxxbridge1$slice$ptr(self); }
387 std::size_t sliceLen(const void *self) noexcept {
388 return cxxbridge1$slice$len(self);
706 const std::shared_ptr<CXX_TYPE> &self, \
708 new (ptr) std::shared_ptr<CXX_TYPE>(self); \
711 const std::shared_ptr<CXX_TYPE> &self) noexcept { \
712 return self.get(); \
715 const std::shared_ptr<CXX_TYPE> *self) noexcept { \
716 self->~shared_ptr(); \
725 const std::weak_ptr<CXX_TYPE> &self, \
727 new (ptr) std::weak_ptr<CXX_TYPE>(self); \
740 const std::weak_ptr<CXX_TYPE> *self) noexcept { \
741 self->~weak_ptr(); \