[][src]Function rosy::vm::require_protected

pub unsafe fn require_protected(file: impl Into<String>) -> Result<bool>

Loads file with the current safe_level.

This returns true if successful or false if already loaded.

See require_with for more info.

Safety

Code executed from file may void the type safety of objects accessible from Rust. For example, if one calls push on Array<A> with an object of type B, then the inserted object will be treated as being of type A.