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
Im using nom to parse binary data, coming from a modem. The data is sometimes uft8 and sometimes other binary data. At some point I want to convert from u8 slices to a heapless String...
Currently I use core::str::from_utf8(method).unwrap().into() to convert from the u8 slice into the String<...>.
Is there another, simpler way? Should we add a from_uft8 method to heapless::String, similar to how std has one?
The text was updated successfully, but these errors were encountered:
Im using nom to parse binary data, coming from a modem. The data is sometimes uft8 and sometimes other binary data. At some point I want to convert from u8 slices to a heapless String...
Currently I use
core::str::from_utf8(method).unwrap().into()
to convert from the u8 slice into theString<...>
.Is there another, simpler way? Should we add a
from_uft8
method to heapless::String, similar to how std has one?The text was updated successfully, but these errors were encountered: