We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Return the first generator type in the argument list of function.
function
Example:
const std = @import("std"); const zigar = @import("zigar"); fn world(generator: zigar.function.Generator(?bool)) void { generator.end(); } comptime { std.debug.assert(zigar.function.GeneratorArgOf(world) == zigar.function.Generator(?bool)); }
Arguments:
anytype
Return value:
Generator(T,-allocating)
Generator(T,-allocating) | GeneratorOf(function)