INNER CODE UNIT · Rust
default
shawnscode/crayon · modules/world/src/lib.rs:80
pub fn default() -> WorldDefaultResources {
ctx().default
}
mod inside {
use super::system::WorldSystem;
static mut CTX: *const WorldSystem = std::ptr::null();
#[inline]
pub fn ctx() -> &'static WorldSystem {
unsafe {
debug_assert!(
!CTX.is_null(),
"world system has not been initialized properly."
);
&*CTX