Root

Trait Root 

Source
pub trait Root {
    // Required methods
    unsafe fn allocate() -> Self;
    unsafe fn enter(&mut self, _: Isolate);
    unsafe fn exit(&mut self, _: Isolate);
}

Required Methods§

Source

unsafe fn allocate() -> Self

§Safety

Allocates an uninitialized scope. See enter and exit.

Source

unsafe fn enter(&mut self, _: Isolate)

§Safety

Must be called exactly once after creating a Root and before usage

Source

unsafe fn exit(&mut self, _: Isolate)

§Safety

Must be called exactly once, if and only if enter succeeds

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§