Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexnask/PeerType

Zig peer type resolution at comptime, ported from the compiler source code
https://github.com/alexnask/PeerType

metaprogramming zig zig-library zig-package

Last synced: about 5 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# PeerType

## API
```zig
/// 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