pub const Slice = struct
start: Index
end: Index
pub fn len(self: Slice) Index
pub fn view(self: Slice, bytes: []const u8) []const u8
222 223 224 225 226 227 228 229 230 231 232 233
pub const Slice = struct { start: Index, end: Index, pub fn len(self: Slice) Index { return self.end - self.start; } pub fn view(self: Slice, bytes: []const u8) []const u8 { return bytes[self.start..self.end]; } }