{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreigtancxzucep5cygz5x6qj75m2wdwgqo5i3subl2z4cda7odyk7na",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mmp667dowgo2"
},
"path": "/t/what-is-allocator-by-ref-for/24356#post_6",
"publishedAt": "2026-05-25T17:26:22.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Morgane55440:\n\n> `x.by_ref().other_method().yet_another()` is meant to be a nicer way to write `(&mut x).other_method().yet_another()`(yes the parentheses are necesary)\n\nThe documentation should maybe actually say _this_ , because I could not for the life of me figure out what it was doing from the existing documentation, but this makes perfect sense.",
"title": "What is Allocator::by_ref for?"
}