Function std::str::raw::slice_bytesDeprecated
[-]
[+]
[src]
pub unsafe fn slice_bytes(s: &'a str, begin: uint, end: uint) -> &'a str
Takes a bytewise (not UTF-8) slice from a string.
Returns the substring from [begin
..end
).
Panics
If begin is greater than end. If end is greater than the length of the string.