Skip to main content

container_of

Macro container_of 

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

Returns the container of a given field.

ยงSafety

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