blair_mountain

Crates.ioblair_mountain
lib.rsblair_mountain
version0.3.0
sourcesrc
created_at2020-02-21 18:31:38.008322
updated_at2020-02-23 17:46:35.868996
descriptionUnion types in release mode with debug assertions in debug mode
homepage
repositoryhttps://github.com/Restioson/blair_mountain
max_upload_size
id211261
size26,197
Restioson (Restioson)

documentation

https://docs.rs/blair_mountain

README

blair_mountain

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.

Commit count: 8

cargo fmt