Function cast [src]

Prototype

pub fn cast(step: *Step, comptime T: type) ?*T

Parameters

step: *StepT: type

Source

pub fn cast(step: *Step, comptime T: type) ?*T { if (step.id == T.base_id) { return @fieldParentPtr("step", step); } return null; }