repr_offset::get_field_offset

Trait ImplsGetFieldOffset

Source
pub unsafe trait ImplsGetFieldOffset: Sized { }
Expand description

Marker trait for types that implement GetFieldOffset.

This trait is required for the GetFieldOffset impls that get the FieldOffset of nested fields.

This is only required as a workaround to lower the time that cargo doc takes to run.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<A, B, C, D> ImplsGetFieldOffset for ReprAlign4<A, B, C, D>

Source§

impl<A, B, C, D> ImplsGetFieldOffset for ReprC<A, B, C, D>

Source§

impl<A, B, C, D> ImplsGetFieldOffset for ReprPacked2<A, B, C, D>

Source§

impl<A, B, C, D> ImplsGetFieldOffset for ReprPacked<A, B, C, D>