Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexnask/PeerType
- Owner: alexnask
- License: mit
- Created: 2020-11-19T12:57:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T18:34:16.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T15:04:07.081Z (about 7 hours ago)
- Topics: metaprogramming, zig, zig-library, zig-package
- Language: Zig
- Homepage:
- Size: 30.3 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - PeerType🗒️Zig peer type resolution at comptime, ported from the compiler source code
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