{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreib6e2wwhrkojoccnlgeqdcmjryqllikahzwendgrfx7gno4lvq7ye",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mmnl577l4rr2"
  },
  "path": "/t/what-is-allocator-by-ref-for/24356#post_2",
  "publishedAt": "2026-05-25T03:02:24.000Z",
  "site": "https://internals.rust-lang.org",
  "tags": [
    "https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.by_ref"
  ],
  "textContent": "FeldrinH:\n\n> It seems to simply return a shared reference to the allocator, so how is it any different from a simple borrow?\n\nKinda like https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.by_ref?",
  "title": "What is Allocator::by_ref for?"
}