Skip to main content

IFileSystemScriptLoaderMethods

Trait IFileSystemScriptLoaderMethods 

Source
pub trait IFileSystemScriptLoaderMethods: IFileSystemScriptLoader {
    // Provided methods
    fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool { ... }
    fn load_file(
        self,
        file: impl Into<Il2CppString>,
        global_context: impl Into<Table>,
    ) -> Object { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn script_file_exists(self, name: impl Into<Il2CppString>) -> bool

ScriptFileExists(::unity::Il2CppString) overload

Source

fn load_file( self, file: impl Into<Il2CppString>, global_context: impl Into<Table>, ) -> Object

LoadFile(::unity::Il2CppString, crate::moon_sharp::interpreter::table::Table) overload

Source

fn ctor(self)

.ctor() overload

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§

Source§

impl<__T: IFileSystemScriptLoader> IFileSystemScriptLoaderMethods for __T

Available on crate feature moon_sharp-interpreter-loaders-filesystemscriptloader only.