You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all captures are Vec<(&str, (usize, usize))>. This is probably the most efficient way we can go by default, but it's not particularly friendly for those who need to then change this type into something else (e.g. HashMap<&str, String>. It would be better if we could go directly into that type at capture time.
This would avoid an unnecessary Vec allocation, and save a few cycles for the actual parsing. It is likely also easier for the developer to provide the trait implementation, rather than manually parsing out their values.
The text was updated successfully, but these errors were encountered:
Currently all captures are
Vec<(&str, (usize, usize))>
. This is probably the most efficient way we can go by default, but it's not particularly friendly for those who need to then change this type into something else (e.g.HashMap<&str, String>
. It would be better if we could go directly into that type at capture time.This would avoid an unnecessary
Vec
allocation, and save a few cycles for the actual parsing. It is likely also easier for the developer to provide the trait implementation, rather than manually parsing out their values.The text was updated successfully, but these errors were encountered: