pub struct CompilationJob<T, F> { /* private fields */ }Expand description
The interface of LUNIR’s compilation pipeline. CompilationJob allows you to pass in parameters to the LUNIR compilation pipeline and invoke it, even across threads.
Implementations§
Source§impl<'a, T> CompilationJob<T, NoSerializer>
impl<'a, T> CompilationJob<T, NoSerializer>
Sourcepub fn serializer<S: Fn(IlChunk) -> Vec<u8>>(
self,
serializer: S,
) -> CompilationJob<T, WithSerializer<S>>
pub fn serializer<S: Fn(IlChunk) -> Vec<u8>>( self, serializer: S, ) -> CompilationJob<T, WithSerializer<S>>
Adds a target format serializer function to this CompilationJob to allow it to produce a final bytecode.
Source§impl<'a, F> CompilationJob<NoTree, F>
impl<'a, F> CompilationJob<NoTree, F>
Sourcepub fn tree(self, tree: &'a Node) -> CompilationJob<WithTree<'a>, F>
pub fn tree(self, tree: &'a Node) -> CompilationJob<WithTree<'a>, F>
Adds a source abstract syntax tree to this CompilationJob.
Trait Implementations§
Source§impl<T: Clone, F: Clone> Clone for CompilationJob<T, F>
impl<T: Clone, F: Clone> Clone for CompilationJob<T, F>
Source§fn clone(&self) -> CompilationJob<T, F>
fn clone(&self) -> CompilationJob<T, F>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, F> Freeze for CompilationJob<T, F>
impl<T, F> RefUnwindSafe for CompilationJob<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for CompilationJob<T, F>
impl<T, F> Sync for CompilationJob<T, F>
impl<T, F> Unpin for CompilationJob<T, F>
impl<T, F> UnwindSafe for CompilationJob<T, F>where
F: UnwindSafe,
T: UnwindSafe,
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