this thing where methods can take `self: Box<Self>`: what other types can be used here as wrappers around the Self type? my guess would be anything that implements Deref<Target=Self> ?
Yup, when people talk about how box is only special in one case anymore, this is what they're referring to. There's talk of maybe adding a DerefMove trait for this
-
-
Oh sorry I should have read the whole thread. There's an unstable feature for this, `arbitrary_self_types` which lets you do `self: Rc<Self>`, etc.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.