Struct librsnek::runtime::Runtime
[−]
[src]
pub struct Runtime(StrongRc<RuntimeInternal>);
Holder struct around the Reference Counted RuntimeInternal that
Methods
impl Runtime
[src]
fn new() -> Runtime
Create a new instance of runtime which will initialize the runtime
fn register_builtin(&self, func: Func)
Temporary method to put a function into the builtin module
fn get_builtin(&self, name: &'static str) -> RtObject
Temporary solution to get a builtin function by name until
Trait Implementations
impl Clone for Runtime
[src]
fn clone(&self) -> Self
Cloning a runtime just increases the strong reference count and gives
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
.
impl<'a> ModuleImporter<&'a str> for Runtime
[src]
fn import_module(&self, path: &'a str) -> Result<RtObject, Error>
Import a module by path. Currently this will only allow imports of
impl NoneProvider for Runtime
[src]
impl BooleanProvider<Boolean> for Runtime
[src]
impl<T: Num> IntegerProvider<T> for Runtime where
Integer: From<T>,
[src]
Integer: From<T>,
impl<T: Num> FloatProvider<T> for Runtime where
Float: From<T>,
[src]
Float: From<T>,
fn float(&self, value: T) -> RtObject
Create an RtObject
from any integer type for which rs::Integer
impl IteratorProvider<None> for Runtime
[src]
impl IteratorProvider<Iterator> for Runtime
[src]
impl StringProvider<None> for Runtime
[src]
impl StringProvider<String> for Runtime
[src]
impl<'a> StringProvider<&'a str> for Runtime
[src]
impl DefaultStringProvider for Runtime
[src]
fn default_str(&self) -> RtObject
impl DictProvider<Dict> for Runtime
[src]
impl DictProvider<None> for Runtime
[src]
impl DefaultDictProvider for Runtime
[src]
fn default_dict(&self) -> RtObject
impl TupleProvider<None> for Runtime
[src]
impl TupleProvider<Tuple> for Runtime
[src]
impl DefaultTupleProvider for Runtime
[src]
fn default_tuple(&self) -> RtObject
impl ListProvider<None> for Runtime
[src]
impl ListProvider<List> for Runtime
[src]
impl DefaultListProvider for Runtime
[src]
fn default_list(&self) -> RtObject
impl ObjectProvider<None> for Runtime
[src]
impl ObjectProvider<Object> for Runtime
[src]
impl PyTypeProvider<None> for Runtime
[src]
impl FunctionProvider<Func> for Runtime
[src]
fn function(&self, value: Func) -> RtObject
Create a function object from the rs::Function and return its RtObject