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
If client code wants to use its own custom location type, they came implement From<CustomLocType> for Range<u32> or have a to_range() method or something.
I can make a PR if you'd like.
The text was updated successfully, but these errors were encountered:
By changing
Loc
to beyou can actually swap out
Loc
altogether forRange<u32>
. To avoid confusing situations when usingRange<u32>
as an iterator,Range<u32>
does not implementCopy
, so you will need to add.clone()
in a few places. (The calls to clone are really just copies anyway, except requiring a call to clone makes it more explicit that a newRange<u32>
is being created.)If client code wants to use its own custom location type, they came implement
From<CustomLocType> for Range<u32>
or have ato_range()
method or something.I can make a PR if you'd like.
The text was updated successfully, but these errors were encountered: