pub struct LazyCompiler { /* private fields */ }Expand description
Lazy compiler with caching support
Implementations§
Source§impl LazyCompiler
impl LazyCompiler
Sourcepub fn compile(&mut self, graph: &FxGraph, target: &str) -> Result<CompiledCode>
pub fn compile(&mut self, graph: &FxGraph, target: &str) -> Result<CompiledCode>
Compile code for a graph, using cache when possible
Sourcepub fn cache_stats(&self) -> &CacheStats
pub fn cache_stats(&self) -> &CacheStats
Get cache statistics
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the compilation cache
Trait Implementations§
Source§impl Debug for LazyCompiler
impl Debug for LazyCompiler
Auto Trait Implementations§
impl Freeze for LazyCompiler
impl !RefUnwindSafe for LazyCompiler
impl !Send for LazyCompiler
impl !Sync for LazyCompiler
impl Unpin for LazyCompiler
impl UnsafeUnpin for LazyCompiler
impl !UnwindSafe for LazyCompiler
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> 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