{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreibbjwuk7erczwnh4xaxl4fnbdynkmed46i4icqiavrco5hoqrexaa",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgvohoemcze2"
  },
  "path": "/t/introduce-a-way-to-construct-range-from-start-length/24073#post_13",
  "publishedAt": "2026-03-12T17:11:25.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "scottmcm:\n\n> Reminder that, at least if you're slicing, `[start..][..count]` works wonderfully.\n\nMaybe we could have something like:\n\n\n    impl<T: Step> RangeFrom<T> {\n        fn with_len(self, count: usize) -> Range<T> {\n            self.start.clone()..self.start.forward(count)\n        }\n    }\n\n\ne.g. `(start..).with_len(count)`\n\n`Step` can allow checked/unchecked variants as well.",
  "title": "Introduce a way to construct Range from start + length"
}