Lines Matching refs:Str
1 {{#title rust::Str — Rust ♡ C++}}
2 # rust::Str
14 class Str final {
16 Str() noexcept;
17 Str(const Str &) noexcept;
18 Str(const String &) noexcept;
21 Str(const std::string &);
22 Str(const char *);
23 Str(const char *, size_t);
25 Str &operator=(const Str &) noexcept;
42 bool operator==(const Str &) const noexcept;
43 bool operator!=(const Str &) const noexcept;
44 bool operator<(const Str &) const noexcept;
45 bool operator<=(const Str &) const noexcept;
46 bool operator>(const Str &) const noexcept;
47 bool operator>=(const Str &) const noexcept;
49 void swap(Str &) noexcept;
52 std::ostream &operator<<(std::ostream &, const Str &);
59 **Be aware that rust::Str behaves like &str i.e. it is a borrow!** C++
62 Just to reiterate: &str is rust::Str. Do not try to write &str as `const
63 rust::Str &`. A language-level C++ reference is not able to capture the fat
105 void c(rust::Str greeting);
114 void c(rust::Str greeting) {