#[repr(transparent)]pub struct RawReportMut<'a> {
ptr: NonNull<ReportData<Erased>>,
_marker: PhantomData<&'a mut ReportData<Erased>>,
}Expand description
A mutable lifetime-bound pointer to a ReportData that is guaranteed to point
to an initialized instance of a ReportData<C> for some specific C, though
we do not know which actual C it is.
We cannot use a &'a mut ReportData<C> directly, because that would require
us to know the actual type of the context, which we do not.
Fields§
§ptr: NonNull<ReportData<Erased>>§_marker: PhantomData<&'a mut ReportData<Erased>>Implementations§
Source§impl<'a> RawReportMut<'a>
impl<'a> RawReportMut<'a>
Sourcepub fn children_mut(self) -> &'a mut Vec<RawReport>
pub fn children_mut(self) -> &'a mut Vec<RawReport>
Gets a mutable reference to the child reports.
Sourcepub fn attachments_mut(self) -> &'a mut Vec<RawAttachment>
pub fn attachments_mut(self) -> &'a mut Vec<RawAttachment>
Gets a mutable reference to the attachments.
§Safety
The caller must ensure that this is the only existing reference pointing to
the inner ReportData.
Source§impl<'a> RawReportMut<'a>
impl<'a> RawReportMut<'a>
Sourcepub fn reborrow<'b>(&'b mut self) -> RawReportMut<'b>
pub fn reborrow<'b>(&'b mut self) -> RawReportMut<'b>
Reborrows the mutable reference to the ReportData with a shorter lifetime.
Sourcepub fn as_ref(&self) -> RawReportRef<'_>
pub fn as_ref(&self) -> RawReportRef<'_>
Returns a reference to the ReportData instance.
Sourcepub fn into_ref(self) -> RawReportRef<'a>
pub fn into_ref(self) -> RawReportRef<'a>
Consumes the mutable reference and returns an immutable one with the same lifetime.
Sourcepub(super) fn into_mut_ptr(self) -> *mut ReportData<Erased>
pub(super) fn into_mut_ptr(self) -> *mut ReportData<Erased>
Consumes this RawReportMut and returns a raw mutable pointer to the underlying ReportData.
This method is primarily used for internal operations that require direct pointer access.