Skip to main content

InterpreterBuilderExt

Trait InterpreterBuilderExt 

Source
pub trait InterpreterBuilderExt {
    // Required method
    fn init_stdlib(self) -> Self;
}
Expand description

Extension trait for InterpreterBuilder to add rustpython-specific functionality.

Required Methods§

Source

fn init_stdlib(self) -> Self

Initialize the Python standard library.

Requires the stdlib feature to be enabled.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§