Function view [src]
Prototype
pub fn view(self: Slice, bytes: []const u8) []const u8
Parameters
self: Slice
bytes: []const u8
Source
pub fn view(self: Slice, bytes: []const u8) []const u8 {
return bytes[self.start..self.end];
}
pub fn view(self: Slice, bytes: []const u8) []const u8
self: Slice
bytes: []const u8
pub fn view(self: Slice, bytes: []const u8) []const u8 {
return bytes[self.start..self.end];
}