Re-interpreting a Repr-C'd struct's bytes as a certain type

The pointer itself implements Freeze, but this says nothing about T.

/// Compiler-internal trait used to determine whether a type contains
/// any `UnsafeCell` internally, but not through an indirection.

Yes, that's how I understand it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.