[][src]Struct kg_js::Engine

pub struct Engine { /* fields omitted */ }

Methods

impl Engine[src]

pub fn new() -> Engine[src]

pub fn version() -> u32[src]

pub fn version_info() -> &'static str[src]

pub fn normalize_index(&self, index: i32) -> i32[src]

pub fn get_top(&self) -> i32[src]

pub fn dup(&mut self, index: i32)[src]

pub fn remove(&mut self, index: i32)[src]

pub fn pop(&mut self)[src]

pub fn pop_n(&mut self, n: i32)[src]

pub fn push_this(&mut self)[src]

pub fn push_object(&mut self) -> i32[src]

pub fn push_number(&mut self, value: f64)[src]

pub fn push_string(&mut self, value: &str)[src]

pub fn push_function(
    &mut self,
    target: &mut dyn CallJs,
    func_name: &str,
    nargs: i32
)
[src]

pub fn put_prop_function(
    &mut self,
    obj_index: i32,
    target: &mut dyn CallJs,
    func_name: &str,
    nargs: i32
)
[src]

pub fn is_string(&mut self, index: i32) -> bool[src]

pub fn is_number(&mut self, index: i32) -> bool[src]

pub fn is_object(&mut self, index: i32) -> bool[src]

pub fn get_string(&mut self, index: i32) -> &str[src]

pub fn get_number(&mut self, index: i32) -> f64[src]

pub fn get_prop(&mut self, obj_index: i32)[src]

pub fn put_prop(&mut self, obj_index: i32)[src]

pub fn get_prop_string(&mut self, obj_index: i32, key: &str)[src]

pub fn put_prop_string(&mut self, obj_index: i32, key: &str)[src]

pub fn get_prop_index(&mut self, obj_index: i32, index: u32)[src]

pub fn put_prop_index(&mut self, obj_index: i32, index: u32)[src]

pub fn get_global_string(&mut self, key: &str)[src]

pub fn put_global_string(&mut self, key: &str)[src]

pub fn call_prop(&mut self, obj_index: i32, nargs: usize)[src]

pub fn eval(&mut self, filename: &str, code: &str)[src]

pub fn compile(&mut self, filename: &str, code: &str)[src]

pub fn write<O: WriteJs>(&mut self, obj: &O) -> i32[src]

pub fn read<O: ReadJs>(&mut self, obj: &mut O, obj_index: i32)[src]

pub fn read_top<O: ReadJs>(&mut self, obj: &mut O)[src]

pub fn read_node<'a>(&mut self, obj_index: i32) -> NodeRef[src]

pub fn write_node(&mut self, node: &NodeRef) -> i32[src]

Trait Implementations

impl Drop for Engine[src]

impl Debug for Engine[src]

Auto Trait Implementations

impl !Sync for Engine

impl !Send for Engine

impl Unpin for Engine

impl RefUnwindSafe for Engine

impl UnwindSafe for Engine

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]