Struct arret_compiler::CompileCtx[][src]

pub struct CompileCtx { /* fields omitted */ }

Shared context for compilation

This isn’t specific to a given program or REPL session. It acts as a global cache of compiled source files and Rust libraries; it should be reused whenever possible.

Implementations

impl CompileCtx[src]

pub fn new(package_paths: PackagePaths, enable_optimisations: bool) -> Self[src]

pub fn package_paths(&self) -> &PackagePaths[src]

pub fn enable_optimisations(&self) -> bool[src]

pub fn source_loader(&self) -> &SourceLoader[src]

Auto Trait Implementations

impl RefUnwindSafe for CompileCtx

impl Send for CompileCtx

impl Sync for CompileCtx

impl Unpin for CompileCtx

impl UnwindSafe for CompileCtx

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, 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.