Expand description
Module containing the main attachment data structure
Re-exportsยง
pub use self::raw::RawAttachment;pub use self::raw::RawAttachmentRef;
Modulesยง
- data ๐
- This module encapsulates the fields of the
AttachmentData. Since this is the only place they are visible, this means that the type of theAttachmentVtableis guaranteed to always be in sync with the type of the actual attachment. This follows from the fact that they are in sync when created and that the API offers no way to change theAttachmentVtableor attachment type after creation. - raw ๐
- This module encapsulates the fields of the
RawAttachmentandRawAttachmentRef. Since this is the only place they are visible, this means that theptrfield of both types is always guaranteed to come fromBox<AttachmentData<A>>. This follows from the fact that there are no places where theptrfield is altered after creation (besides invalidating it after it should no longer be used). - vtable ๐