{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibwdxal7j5el6rvbkgdb4b36rroyqz3ig5qk5ethv5dgv5z4fewvq",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgv226pgurb2"
},
"path": "/t/introduce-a-way-to-construct-range-from-start-length/24073#post_11",
"publishedAt": "2026-03-12T15:51:32.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "What trait bounds would be on `T` here for this `from_len` method? Because if there's a syntax sugar for it, `Range` doesn't have any constraints.\n\n\n fn range_fun() {\n let string_range = \"a\"..\"b\";\n let tuple_range = (0,)..(1,);\n }\n",
"title": "Introduce a way to construct Range from start + length"
}