Enum erg_compiler::transpile::TranspiledFile
source · pub enum TranspiledFile {
PyScript(PyScript),
Json(Json),
}
Variants§
Implementations§
Trait Implementations§
source§impl BuildRunnable<TranspiledFile> for Transpiler
impl BuildRunnable<TranspiledFile> for Transpiler
fn build_module(&mut self) -> Result<CompleteArtifact<T>, IncompleteArtifact<T>>
source§impl Buildable<TranspiledFile> for Transpiler
impl Buildable<TranspiledFile> for Transpiler
fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Self
fn inherit_with_name( cfg: ErgConfig, mod_name: Str, shared: SharedCompilerResource ) -> Self
fn build( &mut self, src: String, mode: &str ) -> Result<CompleteArtifact<TranspiledFile>, IncompleteArtifact<TranspiledFile>>
fn build_from_ast( &mut self, ast: AST, mode: &str ) -> Result<CompleteArtifact<TranspiledFile>, IncompleteArtifact<TranspiledFile>>
fn pop_context(&mut self) -> Option<ModuleContext>
fn get_context(&self) -> Option<&ModuleContext>
Auto Trait Implementations§
impl RefUnwindSafe for TranspiledFile
impl Send for TranspiledFile
impl Sync for TranspiledFile
impl Unpin for TranspiledFile
impl UnwindSafe for TranspiledFile
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