Skip to main content

compose_field_offsets

Function compose_field_offsets 

Source
pub const fn compose_field_offsets<T, U, V>(
    a: FieldOffset<T, U, AllowPin>,
    b: FieldOffset<U, V, AllowPin>,
) -> FieldOffset<T, V, AllowPin>
Expand description

Compose two pinned field offsets into the offset of the nested field.

Same as the Add implementation on FieldOffset, but usable in const context.