Expand description
This module encapsulates the fields of the RawAttachment and RawAttachmentRef.
Since this is the only place they are visible, this means that the ptr field of both types is always
guaranteed to come from Box<AttachmentData<A>>. This follows from the fact that there are no places where the
ptr field is altered after creation (besides invalidating it after it should no longer be used).
Structsยง
- RawAttachment
- A pointer to an
AttachmentDatathat is guaranteed to point to an initialized instance of anAttachmentData<A>for some specificA, though we do not know which actualAit is. - RawAttachment
Ref - A lifetime-bound pointer to an
AttachmentDatathat is guaranteed to point to an initialized instance of anAttachmentData<A>for some specificA, though we do not know which actualAit is.