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
Sometimes I just want to parse a u32 from a byte slice, but currently when working with std lib, I can only first perform checked convert from & [u8] it to & str, and then call str::parse. It would be a performance loss, because I don't really care whether this byte slice is a valid UTF-8 string.
Is it possible to add similiar functions and traits in bstr?
The text was updated successfully, but these errors were encountered:
In the
str
type, we have:Sometimes I just want to parse a
u32
from a byte slice, but currently when working with std lib, I can only first perform checked convert from& [u8]
it to& str
, and then callstr::parse
. It would be a performance loss, because I don't really care whether this byte slice is a valid UTF-8 string.Is it possible to add similiar functions and traits in
bstr
?The text was updated successfully, but these errors were encountered: