1
0
Fork 0
ableos/kernel/src/interp/objects.rs

15 lines
264 B
Rust

use {
alloc::vec::Vec,
spin::{Lazy, Mutex},
};
// Seperate use statement
use alloc::vec;
pub type HostObjects = Vec<Option<xml::XMLElement>>;
pub const OBJECTS: Lazy<Mutex<HostObjects>> = Lazy::new(|| {
let mut obj = vec![];
Mutex::new(obj)
});