[−][src]Struct lua51::State
Implementations
impl State
[src]
pub fn new() -> State
[src]
pub fn at_panic(&self, panicf: lua_CFunction) -> lua_CFunction
[src]
pub fn call(&self, nargs: i32, nresults: i32)
[src]
pub fn check_stack(&self, extra: i32) -> i32
[src]
pub fn concat(&self, n: i32)
[src]
pub fn cpcall(&self, func: lua_CFunction, ud: *mut c_void) -> i32
[src]
pub fn create_table(&self, narr: i32, nrec: i32)
[src]
pub fn dump(&self, writer: lua_Writer, data: *mut c_void) -> i32
[src]
pub fn equal(&self, index1: i32, index2: i32) -> i32
[src]
pub fn error(&self) -> i32
[src]
pub fn gc(&self, what: i32, data: i32) -> i32
[src]
pub fn get_allocf(&self, ud: *mut *mut c_void) -> lua_Alloc
[src]
pub fn get_fenv(&self, index: i32)
[src]
pub fn get_field(&self, index: i32, k: &str)
[src]
pub fn get_global(&self, name: &str)
[src]
pub fn get_metatable(&self, index: i32) -> i32
[src]
pub fn get_table(&self, index: i32)
[src]
pub fn get_top(&self) -> i32
[src]
pub fn insert(&self, index: i32)
[src]
pub fn is_boolean(&self, index: i32) -> bool
[src]
pub fn is_cfunction(&self, index: i32) -> bool
[src]
pub fn is_function(&self, index: i32) -> bool
[src]
pub fn is_light_userdata(&self, index: i32) -> bool
[src]
pub fn is_nil(&self, index: i32) -> bool
[src]
pub fn is_none(&self, index: i32) -> bool
[src]
pub fn is_none_or_nil(&self, index: i32) -> bool
[src]
pub fn is_number(&self, index: i32) -> bool
[src]
pub fn is_string(&self, index: i32) -> bool
[src]
pub fn is_table(&self, index: i32) -> bool
[src]
pub fn is_thread(&self, index: i32) -> bool
[src]
pub fn is_userdata(&self, index: i32) -> bool
[src]
pub fn less_than(&self, index1: i32, index2: i32) -> bool
[src]
pub fn load(
&self,
reader: lua_Reader,
data: *mut c_void,
chunk_name: &str
) -> i32
[src]
&self,
reader: lua_Reader,
data: *mut c_void,
chunk_name: &str
) -> i32
pub fn new_table(&self)
[src]
pub fn new_userdata(&self, size: usize) -> *mut c_void
[src]
pub fn next(&self, index: i32) -> i32
[src]
pub fn obj_len(&self, index: i32) -> usize
[src]
pub fn pcall(&self, nargs: i32, nresults: i32, errfunc: i32) -> i32
[src]
pub fn pop(&self, n: i32)
[src]
pub fn push_boolean(&self, b: i32)
[src]
pub fn push_cclosure(&self, func: lua_CFunction, n: i32)
[src]
pub fn push_cfunction(&self, func: lua_CFunction)
[src]
pub fn push_integer(&self, n: lua_Integer)
[src]
pub fn push_light_userdata(&self, p: *mut c_void)
[src]
pub fn push_literal(&self, s: &str)
[src]
pub fn push_lstring(&self, s: &str, len: usize)
[src]
pub fn push_nil(&self)
[src]
pub fn push_number(&self, n: lua_Number)
[src]
pub fn push_string(&self, s: &str)
[src]
pub fn push_thread(&self) -> i32
[src]
pub fn push_value(&self, index: i32)
[src]
pub fn raw_equal(&self, index1: i32, index2: i32) -> bool
[src]
pub fn raw_get(&self, index: i32)
[src]
pub fn raw_geti(&self, index: i32, n: i32)
[src]
pub fn raw_set(&self, index: i32)
[src]
pub fn raw_seti(&self, index: i32, n: i32)
[src]
pub fn register(&self, name: &str, func: lua_CFunction)
[src]
pub fn remove(&self, index: i32)
[src]
pub fn replace(&self, index: i32)
[src]
pub fn resume(&self, narg: i32) -> i32
[src]
pub fn set_allocf(&self, f: lua_Alloc, ud: *mut c_void)
[src]
pub fn set_fenv(&self, index: i32) -> i32
[src]
pub fn set_field(&self, index: i32, k: &str)
[src]
pub fn set_global(&self, name: &str)
[src]
pub fn set_metatable(&self, index: i32) -> i32
[src]
pub fn set_table(&self, index: i32)
[src]
pub fn set_top(&self, index: i32)
[src]
pub fn status(&self) -> Status
[src]
pub fn to_boolean(&self, index: i32) -> bool
[src]
pub fn to_cfunction(&self, index: i32) -> lua_CFunction
[src]
pub fn to_integer(&self, index: i32) -> lua_Integer
[src]
pub fn to_lstring(&self, index: i32, len: *mut usize) -> &str
[src]
pub fn to_number(&self, index: i32) -> lua_Number
[src]
pub fn to_pointer(&self, index: i32) -> *const c_void
[src]
pub fn to_string(&self, index: i32) -> &str
[src]
pub fn to_thread(&self, index: i32) -> *mut lua_State
[src]
pub fn to_userdata(&self, index: i32) -> *mut c_void
[src]
pub fn type_of(&self, index: i32) -> Type
[src]
pub fn typename(&self, tp: i32) -> &str
[src]
pub fn xmove(&self, to: *mut lua_State, n: i32)
[src]
pub fn yield_coroutine(&self, nresults: i32) -> i32
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,