Skip to content

Implement len for Range{,Inclusive}1<usize>#42

Open
ronnodas wants to merge 1 commit into
olson-sean-k:masterfrom
ronnodas:range-len
Open

Implement len for Range{,Inclusive}1<usize>#42
ronnodas wants to merge 1 commit into
olson-sean-k:masterfrom
ronnodas:range-len

Conversation

@ronnodas

@ronnodas ronnodas commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Should this also be added for other integer types, panicking if the result doesn't fit, to be consistent with std::ops::range? Note that the added implementation for RangeInclusive1<usize> panics for 0..=usize::MAX.

@ronnodas
ronnodas force-pushed the range-len branch 2 times, most recently from 84308df to 7a98dc0 Compare April 17, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant