A crate that exports one macro (union
) to create types that are enums with checks in debug mode, but unions in release mode. In debug mode, invalid access will panic, while in release
they will not. It is therefore unsafe. Fields should be treated as fields of unions (i.e
no non-Copy
types allowed, etc). Please test all code generated with blair_mountain
in
both release and debug modes.
A macro to define union types with union semantics in release mode but debug assertions in debug mode
License
Restioson/blair_mountain
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A macro to define union types with union semantics in release mode but debug assertions in debug mode
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published