{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreialyl7ygrwgedkyr4ymtbxhf5esbun7u5jqr3gthps3ab3htgxmbe",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mmqxccsepg62"
  },
  "path": "/t/what-is-allocator-by-ref-for/24356#post_9",
  "publishedAt": "2026-05-26T11:35:37.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "What's the benefit of these kind of associated functions over `impl AsMut<Self> for ...`?\n\nAnd, having `AsRef` and `AsMut` in mind, why is it called `by_ref` and not `by_mut` although it returns a _mutable_ reference?",
  "title": "What is Allocator::by_ref for?"
}