pub struct DummyModuleResolver;
Expand description
Implementations§
Source§impl DummyModuleResolver
impl DummyModuleResolver
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new DummyModuleResolver
.
§Example
use rhai::{Engine, Module};
use rhai::module_resolvers::DummyModuleResolver;
let resolver = DummyModuleResolver::new();
let mut engine = Engine::new();
engine.set_module_resolver(resolver);
Trait Implementations§
Source§impl Clone for DummyModuleResolver
impl Clone for DummyModuleResolver
Source§fn clone(&self) -> DummyModuleResolver
fn clone(&self) -> DummyModuleResolver
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DummyModuleResolver
impl Debug for DummyModuleResolver
Source§impl Default for DummyModuleResolver
impl Default for DummyModuleResolver
Source§fn default() -> DummyModuleResolver
fn default() -> DummyModuleResolver
Returns the “default value” for a type. Read more
Source§impl Hash for DummyModuleResolver
impl Hash for DummyModuleResolver
Source§impl ModuleResolver for DummyModuleResolver
impl ModuleResolver for DummyModuleResolver
Source§fn resolve(
&self,
_: &Engine,
_: Option<&str>,
path: &str,
pos: Position,
) -> Result<Shared<Module>, Box<EvalAltResult>>
fn resolve( &self, _: &Engine, _: Option<&str>, path: &str, pos: Position, ) -> Result<Shared<Module>, Box<EvalAltResult>>
Resolve a module based on a path string.
Source§fn resolve_raw(
&self,
engine: &Engine,
global: &mut GlobalRuntimeState,
scope: &mut Scope<'_>,
path: &str,
pos: Position,
) -> Result<Shared<Module>, Box<EvalAltResult>>
fn resolve_raw( &self, engine: &Engine, global: &mut GlobalRuntimeState, scope: &mut Scope<'_>, path: &str, pos: Position, ) -> Result<Shared<Module>, Box<EvalAltResult>>
Resolve a module based on a path string, given a
GlobalRuntimeState
and the current Scope
. Read moreSource§impl PartialEq for DummyModuleResolver
impl PartialEq for DummyModuleResolver
impl Copy for DummyModuleResolver
impl Eq for DummyModuleResolver
impl StructuralPartialEq for DummyModuleResolver
Auto Trait Implementations§
impl Freeze for DummyModuleResolver
impl RefUnwindSafe for DummyModuleResolver
impl Send for DummyModuleResolver
impl Sync for DummyModuleResolver
impl Unpin for DummyModuleResolver
impl UnwindSafe for DummyModuleResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.