pubstruct Entry { /// The pointer to the object stored in the registry. This is a type-erased /// `Box<T>`. pub ptr: *mut (), /// The function that can be called on the above pointer to drop the object /// and free its allocation. pub drop: unsafefn(*mut ()),
}
#[cfg(feature = "slab")] mod slab_impl { use std::cell::UnsafeCell;
impl Drop for Registry { fn drop(&mutself) { for (_, value) inself.0.iter() { // SAFETY: This function is only called once, and is called with the // pointer it was created with. unsafe { (value.drop)(value.ptr) };
}
}
}
Messung V0.5 in Prozent
¤ 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.0.17Bemerkung:
(vorverarbeitet am 2026-08-25)
¤
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.