Closed davidpdrsn closed 6 months ago
Pass over methods on Array, List, and Map that makes things more explicit and adds a few new useful methods:
Array
List
Map
Array::swap
List::try_insert
List::push
List::try_push
FromReflect::from_reflect
Map::insert
Map::try_insert
Map::remove
Map::try_remove
Also deduplicated the Map impls.
Checklist
Description of Changes
Pass over methods on
Array
,List
, andMap
that makes things more explicit and adds a few new useful methods:Array::swap
List::try_insert
List::push
renamed toList::try_push
and now returns a result indicating thatFromReflect::from_reflect
failedMap::insert
renamed toMap::try_insert
and also returns resultMap::remove
renamed toMap::try_remove
and also returns resultAlso deduplicated the
Map
impls.Related Issues