Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VarZeroSliceIter, ZeroSliceIter #5924

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Conversation

Manishearth
Copy link
Member

@Manishearth Manishearth commented Dec 18, 2024

Fixes #4487

@Manishearth Manishearth requested a review from sffc as a code owner December 18, 2024 23:11
utils/zerovec/src/varzerovec/components.rs Outdated Show resolved Hide resolved
Some(item)
}

fn size_hint(&self) -> (usize, Option<usize>) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Praise: Thanks for adding size_hint; this is an improvement over what we had before, I think

@Manishearth Manishearth requested a review from sffc December 18, 2024 23:22
@Manishearth Manishearth changed the title Add VarZeroSliceIter Add VarZeroSliceIter, ZeroSliceIter Dec 18, 2024
@Manishearth
Copy link
Member Author

Manishearth commented Dec 18, 2024

thought: these could be VarZeroIter, ZeroIter as well. I'm not actually a fan of the stdlib calling all of its iterators unqualified Iter, though, so being verbose here is fine for me

@sffc
Copy link
Member

sffc commented Dec 18, 2024

well, it's an iterator over specifically a VarZeroSlice, not a VarTupleULE or some other VarULE container.

Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think VarZeroSliceIter and ZeroSliceIter are the right names

@Manishearth Manishearth merged commit a4f6747 into unicode-org:main Dec 18, 2024
28 checks passed
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.

Add explicit ZeroVec and VarZeroVec iterator types
2 participants