Skip to main content

datex_core/libs/
library.rs

1use crate::runtime::cache::shared_references_cache::SharedReferencesCache;
2
3pub trait Library {
4    /// Loads the library into the [SharedReferencesCache]
5    /// # Safety
6    /// The caller must guarantee that load is not called multiple times on the same memory for a library
7    unsafe fn load(memory: &mut SharedReferencesCache);
8}