Struct rquickjs_core::Compile
source · [−]pub struct Compile<T = ()> { /* private fields */ }
Available on crate feature
loader
only.Expand description
Modules compiling data
Implementations
sourceimpl Compile
impl Compile
sourcepub fn resolver<R: Resolver>(&self, resolver: R) -> Compile<R>
pub fn resolver<R: Resolver>(&self, resolver: R) -> Compile<R>
Create compiling resolver by wrapping other resolver
sourcepub fn loader<L: Loader<Script>>(&self, loader: L) -> Compile<L>
pub fn loader<L: Loader<Script>>(&self, loader: L) -> Compile<L>
Create compiling loader by wrapping other script loader
sourcepub fn modules(&self) -> ResolvedModules<'_>
pub fn modules(&self) -> ResolvedModules<'_>
Get resolved modules with paths
You can use IntoIterator::into_iter()
to get an iterator over tuples which includes module name (&str
) and path (&str
).
sourcepub fn bytecodes(&self) -> CompiledBytecodes<'_>
pub fn bytecodes(&self) -> CompiledBytecodes<'_>
Get loaded modules with bytecodes
You can use IntoIterator::into_iter()
to get an iterator over tuples which includes module path (&str
) and bytecode (&[u8]
).
Trait Implementations
Auto Trait Implementations
impl<T = ()> !RefUnwindSafe for Compile<T>
impl<T = ()> !Send for Compile<T>
impl<T = ()> !Sync for Compile<T>
impl<T> Unpin for Compile<T> where
T: Unpin,
impl<T = ()> !UnwindSafe for Compile<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more