macro_rules! raw_field_union {
    ($base:expr, $parent:path, $field:tt) => { ... };
}
Expand description

Computes a const raw pointer to the given field of the given base pointer to the given parent tuple typle.

The base pointer must not be dangling, but it may point to uninitialized memory.

§Note

This macro is the same as raw_field, except for a different Deref-coercion check that supports unions. Due to macro_rules limitations, this check will accept structs with a single field as well as unions. This is not a stable guarantee, and future versions of this crate might fail on any use of this macro with a struct, without a semver bump.