[−][src]Function rosy::vm::require
pub unsafe fn require(file: impl Into<String>) -> bool
Loads file
with the current safe_level
, without checking for exceptions.
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
.
An exception may be raised by the code in file
or by file
being invalid.