Struct erg_compiler::transpile::PyScript
source · pub struct PyScript {
pub filename: Str,
pub code: String,
}
Fields§
§filename: Str
§code: String
Trait Implementations§
source§impl Buildable<PyScript> for Transpiler
impl Buildable<PyScript> for Transpiler
fn inherit(cfg: ErgConfig, shared: SharedCompilerResource) -> Self
fn build( &mut self, src: String, mode: &str ) -> Result<CompleteArtifact<PyScript>, IncompleteArtifact<PyScript>>
fn pop_context(&mut self) -> Option<ModuleContext>
fn get_context(&self) -> Option<&ModuleContext>
impl BuildRunnable<PyScript> for Transpiler
Auto Trait Implementations§
impl RefUnwindSafe for PyScript
impl !Send for PyScript
impl !Sync for PyScript
impl Unpin for PyScript
impl UnwindSafe for PyScript
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