unty-0.0.0 has been yanked.
A crate that allows you to mostly-safely cast one type into another type.
This is mostly useful for generic functions, e.g.
# use *;
foo; // will print "it is an u8"
foo; // will print "it is not an u8"
This operation is still unsafe because it allows you to extend lifetimes. There currently is not a way to prevent this
# fn foo<'a>(input: &'a str) {
# use unty::*;
if let Ok(str) = unsafe { unty::<&'a str, &'static str>(input) } {
// the compiler may now light your PC on fire
}
# }