Struct rquickjs::Compile [−][src]
This is supported on crate feature
loader
only.Modules compiling data
Implementations
impl Compile<()>
[src]
pub fn new() -> Compile<()>
[src]
Create new compiling scope
pub fn resolver<R>(&self, resolver: R) -> Compile<R> where
R: Resolver,
[src]
R: Resolver,
Create compiling resolver by wrapping other resolver
pub fn loader<L>(&self, loader: L) -> Compile<L> where
L: Loader<Script>,
[src]
L: Loader<Script>,
Create compiling loader by wrapping other script loader
pub fn modules(&self) -> ResolvedModules<'_>
[src]
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
).
pub fn bytecodes(&self) -> CompiledBytecodes<'_>
[src]
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
impl<T> Clone for Compile<T> where
T: Clone,
[src]
T: Clone,
impl<T> Default for Compile<T> where
T: Default,
[src]
T: Default,
impl<T> Deref for Compile<T>
[src]
type Target = T
The resulting type after dereferencing.
pub fn deref(&self) -> &<Compile<T> as Deref>::Target
[src]
impl<T> DerefMut for Compile<T>
[src]
impl<L> Loader<()> for Compile<L> where
L: Loader<Script>,
[src]
L: Loader<Script>,
impl<L> Loader<Script> for Compile<L> where
L: Loader<Script>,
[src]
L: Loader<Script>,
pub fn load(
&mut self,
ctx: Ctx<'js>,
path: &str
) -> Result<Module<'js, Loaded<Script>>, Error>
[src]
&mut self,
ctx: Ctx<'js>,
path: &str
) -> Result<Module<'js, Loaded<Script>>, Error>
impl<R> Resolver for Compile<R> where
R: Resolver,
[src]
R: Resolver,
Auto Trait Implementations
impl<T> RefUnwindSafe for Compile<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Compile<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Compile<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Compile<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Compile<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ParallelSend for T where
T: Send,
[src]
T: Send,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,