pub struct Compile<T = ()> { /* private fields */ }
Available on crate feature
loader
only.Expand description
Modules compiling data
Implementations§
Source§impl 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>(&self, loader: L) -> Compile<L>
pub fn loader<L: Loader>(&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> Freeze for Compile<T>where
T: Freeze,
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§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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