syn icon indicating copy to clipboard operation
syn copied to clipboard

`syn::Punctuated` lacks an indexing method that returns an `Option<T>`

Open KiChjang opened this issue 2 years ago • 0 comments

Per title.

index and index_mut doesn't fit the bill as both of them do not (and should not) return an Option, however it still makes sense to have an API that, given an index, would return an Option<T> that indicates either it does contain a T at the given index, or that the index is out of bounds and a None is returned.

KiChjang avatar Apr 12 '22 03:04 KiChjang