Struct rquickjs_core::Compile[][src]

pub struct Compile<T = ()> { /* fields omitted */ }
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]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Compile<T>[src]

impl<L> Loader<()> for Compile<L> where
    L: Loader<Script>, 
[src]

impl<L> Loader<Script> for Compile<L> where
    L: Loader<Script>, 
[src]

impl<R> Resolver for Compile<R> where
    R: Resolver
[src]

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]

impl<T = ()> !UnwindSafe for Compile<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.