Struct rquickjs::loader::BuiltinLoader
source · pub struct BuiltinLoader { /* private fields */ }
Available on crate feature
loader
only.Expand description
The builtin script module loader
This loader can be used as the nested backing loader in user-defined loaders.
Implementations§
source§impl BuiltinLoader
impl BuiltinLoader
sourcepub fn add_module<N, S>(&mut self, name: N, source: S) -> &mut BuiltinLoader
pub fn add_module<N, S>(&mut self, name: N, source: S) -> &mut BuiltinLoader
Add builtin script module
sourcepub fn with_module<N, S>(self, name: N, source: S) -> BuiltinLoader
pub fn with_module<N, S>(self, name: N, source: S) -> BuiltinLoader
Add builtin script module
Trait Implementations§
source§impl Debug for BuiltinLoader
impl Debug for BuiltinLoader
source§impl Default for BuiltinLoader
impl Default for BuiltinLoader
source§fn default() -> BuiltinLoader
fn default() -> BuiltinLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuiltinLoader
impl RefUnwindSafe for BuiltinLoader
impl Send for BuiltinLoader
impl Sync for BuiltinLoader
impl Unpin for BuiltinLoader
impl UnwindSafe for BuiltinLoader
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more