Struct rquickjs_core::Compile [−][src]
This is supported on crate feature
loader
only.Modules compiling data
Implementations
impl Compile
[src]
pub fn new() -> Self
[src]
Create new compiling scope
pub fn resolver<R: Resolver>(&self, resolver: R) -> Compile<R>
[src]
Create compiling resolver by wrapping other resolver
pub fn loader<L: Loader<Script>>(&self, loader: L) -> Compile<L>
[src]
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> Clone for Compile<T>
[src]
impl<T: Default> Default for Compile<T>
[src]
impl<T> Deref for Compile<T>
[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>,
impl<R> Resolver for Compile<R> where
R: Resolver,
[src]
R: Resolver,
Auto Trait Implementations
impl<T = ()> !RefUnwindSafe for Compile<T>
[src]
impl<T = ()> !Send for Compile<T>
[src]
impl<T = ()> !Sync for Compile<T>
[src]
impl<T> Unpin for Compile<T> where
T: Unpin,
[src]
T: Unpin,
impl<T = ()> !UnwindSafe for Compile<T>
[src]
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> 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>,