pub struct DummyVM { /* private fields */ }
Expand description
Open the Python interpreter as a server and act as an Erg interpreter by mediating communication
Pythonインタープリタをサーバーとして開き、通信を仲介することでErgインタープリタとして振る舞う
Implementations§
Trait Implementations§
Source§impl Runnable for DummyVM
impl Runnable for DummyVM
const NAME: &'static str = "Erg interpreter"
type Err = CompileError
type Errs = CompileErrors
fn cfg(&self) -> &ErgConfig
fn cfg_mut(&mut self) -> &mut ErgConfig
fn finish(&mut self)
Source§fn initialize(&mut self)
fn initialize(&mut self)
Erase all but immutable information.
fn exec(&mut self) -> Result<ExitStatus, Self::Errs>
fn eval(&mut self, src: String) -> Result<String, CompileErrors>
fn expect_block(&self, src: &str) -> BlockKind
fn input(&self) -> &Input
fn set_input(&mut self, input: Input)
fn start_message(&self) -> String
fn ps1(&self) -> String
fn ps2(&self) -> String
fn quit(&mut self, code: i32) -> !
fn quit_successfully(&mut self, output: BufWriter<StdoutLock<'_>>) -> !
fn run(cfg: ErgConfig) -> ExitStatus
Auto Trait Implementations§
impl !Freeze for DummyVM
impl !RefUnwindSafe for DummyVM
impl !Send for DummyVM
impl !Sync for DummyVM
impl Unpin for DummyVM
impl !UnwindSafe for DummyVM
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