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
{{ message }}
Repository navigation
str api should offer a method to convert a &u8 slice into an &str with same lifetime #5422
@nikomatsakis Could you confirm the PR request did add what was wanted in this issue? I remembered that there where some difficulties to make it work because a &str slice has to cover one byte more than a &[].
Activity
sanxiyn commentedon Mar 18, 2013
Isn't this an unsafe operation? Not all &u8 are valid &str.
nikomatsakis commentedon Mar 18, 2013
I presumed there'd be an assertion as well as an unsafe variant, as we have for
str::from_bytesKimundi commentedon May 24, 2013
@nikomatsakis Could you confirm the PR request did add what was wanted in this issue? I remembered that there where some difficulties to make it work because a &str slice has to cover one byte more than a &[].
nikomatsakis commentedon May 24, 2013
Looks good, thanks.
Rollup merge of rust-lang#5422 - nickrtorres:contributing-triage, r=f…
Auto merge of rust-lang#5438 - flip1995:rollup-pi762oy, r=flip1995
Merge rust-lang#5422
Merge pull request rust-lang#5422 from hkalbasi/push-tprnpokxupwu