impl DeviceCollectionRef { /// # Safety /// /// This function is unsafe because it dereferences the given `ptr` pointer. /// The caller should ensure that pointer is valid. #[inline] pubunsafefn from_ptr<'a>(ptr: *mut CType) -> &'a Self {
&*(ptr as *mut _)
}
/// # Safety /// /// This function is unsafe because it dereferences the given `ptr` pointer. /// The caller should ensure that pointer is valid. #[inline] pubunsafefn from_ptr_mut<'a>(ptr: *mut CType) -> &'a mutSelf {
&mut *(ptr as *mut _)
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.