Function extraDataSliceWithLen [src]

Prototype

pub fn extraDataSliceWithLen(tree: Ast, start: ExtraIndex, len: u32, comptime T: type) []const T

Parameters

tree: Aststart: ExtraIndexlen: u32T: type

Source

pub fn extraDataSliceWithLen(tree: Ast, start: ExtraIndex, len: u32, comptime T: type) []const T { return @ptrCast(tree.extra_data[@intFromEnum(start)..][0..len]); }