PeerType icon indicating copy to clipboard operation
PeerType copied to clipboard

Zig peer type resolution at comptime, ported from the compiler source code

PeerType

API

/// types must be an iterable of types (tuple, slice, ptr to array)
pub fn PeerType(comptime types: anytype) ?type;
pub fn coercesTo(comptime dst: type, comptime src: type) bool;
pub fn requiresComptime(comptime T: type) bool;

License

MIT