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
Buf::advance is a required method and panics if it runs out of bytes. It would be useful to have a similar functionality which doesn't panic, returning a TryGetError.
Buf::try_advance could be the required method instead of Buf::advance, with the latter being a wrapper on top of the former which just unwraps and panics. This may be undesirable as it would break all implementations!
The text was updated successfully, but these errors were encountered:
Buf::advance
is a required method and panics if it runs out of bytes. It would be useful to have a similar functionality which doesn't panic, returning aTryGetError
.Buf::try_advance
could be the required method instead ofBuf::advance
, with the latter being a wrapper on top of the former which just unwraps and panics. This may be undesirable as it would break all implementations!The text was updated successfully, but these errors were encountered: