Struct librsnek::runtime::Runtime [] [src]

pub struct Runtime(StrongRc<RuntimeInternal>);

Holder struct around the Reference Counted RuntimeInternal that

Methods

impl Runtime
[src]

Create a new instance of runtime which will initialize the runtime

Temporary method to put a function into the builtin module

Temporary solution to get a builtin function by name until

Trait Implementations

impl Clone for Runtime
[src]

Cloning a runtime just increases the strong reference count and gives

Performs copy-assignment from source.

impl<'a> ModuleImporter<&'a str> for Runtime
[src]

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]

Create an RtObject from any integer type for which rs::Integer

impl<T: Num> FloatProvider<T> for Runtime where
    Float: From<T>, 
[src]

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]

impl DictProvider<Dict> for Runtime
[src]

impl DictProvider<None> for Runtime
[src]

impl DefaultDictProvider for Runtime
[src]

impl TupleProvider<None> for Runtime
[src]

impl TupleProvider<Tuple> for Runtime
[src]

impl DefaultTupleProvider for Runtime
[src]

impl ListProvider<None> for Runtime
[src]

impl ListProvider<List> for Runtime
[src]

impl DefaultListProvider for Runtime
[src]

impl ObjectProvider<None> for Runtime
[src]

impl ObjectProvider<Object> for Runtime
[src]

impl PyTypeProvider<None> for Runtime
[src]

impl FunctionProvider<Func> for Runtime
[src]

Create a function object from the rs::Function and return its RtObject

impl FunctionProvider<None> for Runtime
[src]

Create a function object that returns Ok(None)

impl FunctionProvider<RtObject> for Runtime
[src]

Create a function object that returns Ok(value)

impl CodeProvider<Code> for Runtime
[src]

impl FrameProvider<Frame> for Runtime
[src]

impl DefaultFrameProvider for Runtime
[src]

impl ModuleProvider<None> for Runtime
[src]

impl Debug for Runtime
[src]

Formats the value using the given formatter.