Skip to main content

field_of

Macro field_of 

Source
macro_rules! field_of {
    ($ptr:expr, $container:path, $field:ident, $field_type:ty) => { ... };
}
Expand description

Returns the field of a given container.

ยงSafety

The pointer must point to a valid instance of the container.