pub struct CompilePipeline;Expand description
The compilation pipeline.
Implementations§
Source§impl CompilePipeline
impl CompilePipeline
Sourcepub fn compile(
&self,
dir: &Path,
opts: &CompileOptions,
) -> AcbResult<CompileResult>
pub fn compile( &self, dir: &Path, opts: &CompileOptions, ) -> AcbResult<CompileResult>
Compile a directory into a code graph.
Runs the full pipeline: parse -> analyze -> build graph.
Does NOT write the .acb file – call write separately.
Sourcepub fn write(&self, graph: &CodeGraph, output: &Path) -> AcbResult<()>
pub fn write(&self, graph: &CodeGraph, output: &Path) -> AcbResult<()>
Write a compiled graph to an .acb file.
Sourcepub fn compile_and_write(
&self,
dir: &Path,
opts: &CompileOptions,
) -> AcbResult<CompileResult>
pub fn compile_and_write( &self, dir: &Path, opts: &CompileOptions, ) -> AcbResult<CompileResult>
Compile and write in one step.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompilePipeline
impl RefUnwindSafe for CompilePipeline
impl Send for CompilePipeline
impl Sync for CompilePipeline
impl Unpin for CompilePipeline
impl UnsafeUnpin for CompilePipeline
impl UnwindSafe for CompilePipeline
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