A version bump would make this possible: This affects methods like push, insert, etc.: In order to easily assert or bubble up the error, it would be nice if these methods returned Results instead of Options. This way, you can both implement From to convert it to your own error type and use unwrap for an easy "this is a bug" marker. Additionally, it warns if the result is unused.
A version bump would make this possible: This affects methods like
push,insert, etc.: In order to easily assert or bubble up the error, it would be nice if these methods returnedResults instead ofOptions. This way, you can both implementFromto convert it to your own error type and useunwrapfor an easy "this is a bug" marker. Additionally, it warns if the result is unused.