Macro intrusive_collections::offset_of_unsafe [] [src]

macro_rules! offset_of_unsafe {
    ($container:path, $field:ident) => { ... };
}

Macro to get the offset of a struct field in bytes from the address of the struct.

This macro is identical to offset_of! but doesn't give a warning about unnecessary unsafe blocks when invoked from unsafe code.