Lines Matching defs:other
40 const rust::String &other) noexcept;
96 String::String(const String &other) noexcept {
97 cxxbridge1$string$clone(this, other);
100 String::String(String &&other) noexcept : repr(other.repr) {
101 cxxbridge1$string$new(&other);
188 String &String::operator=(const String &other) &noexcept {
189 if (this != &other) {
191 cxxbridge1$string$clone(this, other);
196 String &String::operator=(String &&other) &noexcept {
198 this->repr = other.repr;
199 cxxbridge1$string$new(&other);
463 Error::Error(const Error &other)
464 : std::exception(other),
465 msg(other.msg ? errorCopy(other.msg, other.len) : nullptr),
466 len(other.len) {}
468 Error::Error(Error &&other) noexcept
469 : std::exception(std::move(other)), msg(other.msg), len(other.len) {
470 other.msg = nullptr;
471 other.len = 0;
476 Error &Error::operator=(const Error &other) & {
477 if (this != &other) {
478 std::exception::operator=(other);
481 if (other.msg) {
482 this->msg = errorCopy(other.msg, other.len);
483 this->len = other.len;
489 Error &Error::operator=(Error &&other) &noexcept {
490 std::exception::operator=(std::move(other));
492 this->msg = other.msg;
493 this->len = other.len;
494 other.msg = nullptr;
495 other.len = 0;
525 // would collide with one of the other specializations.