intrusive_collections::offset_of! [] [src]

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

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

This macro will cause a warning if it is invoked in an unsafe block. Use the offset_of_unsafe macro instead to avoid this warning.