1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use crate::sys::ErlNifEntry;

pub struct Entry(ErlNifEntry);

unsafe impl Sync for Entry {}

impl Entry {
	pub const fn new(entry: ErlNifEntry) -> Entry {
		Entry(entry)
	}

	pub fn raw(&self) -> &ErlNifEntry {
		&self.0
	}
}