Struct lua::State [−][src]
pub struct State { /* fields omitted */ }Type to perform operations over an underlying lua_State safely
Methods
impl State[src]
impl Statepub fn new() -> Self[src]
pub fn new() -> Selfpub fn into_raw(self) -> *mut lua_State[src]
pub fn into_raw(self) -> *mut lua_Statepub unsafe fn from_raw_parts(state: *mut lua_State) -> Self[src]
pub unsafe fn from_raw_parts(state: *mut lua_State) -> Selfpub fn open_libs(&mut self)[src]
pub fn open_libs(&mut self)pub fn eval<T: AsCStr>(&mut self, source: T) -> Result<()>[src]
pub fn eval<T: AsCStr>(&mut self, source: T) -> Result<()>pub fn eval_from_reader<R: Read>(&mut self, read: R) -> Result<()>[src]
pub fn eval_from_reader<R: Read>(&mut self, read: R) -> Result<()>pub fn eval_from_file<P>(&mut self, path: P) -> Result<()> where
P: AsRef<Path>, [src]
pub fn eval_from_file<P>(&mut self, path: P) -> Result<()> where
P: AsRef<Path>, pub fn load_from_file<P>(&mut self, path: P) -> Result<()> where
P: AsRef<Path>, [src]
pub fn load_from_file<P>(&mut self, path: P) -> Result<()> where
P: AsRef<Path>, pub fn load_from_reader<R: Read>(&mut self, read: R) -> Result<()>[src]
pub fn load_from_reader<R: Read>(&mut self, read: R) -> Result<()>pub fn call_protected(&mut self, nargs: usize, nresults: usize) -> Result<()>[src]
pub fn call_protected(&mut self, nargs: usize, nresults: usize) -> Result<()>pub fn load<T: AsCStr>(&mut self, source: T) -> Result<()>[src]
pub fn load<T: AsCStr>(&mut self, source: T) -> Result<()>pub fn pop(&mut self, n: usize)[src]
pub fn pop(&mut self, n: usize)pub fn gc(&self) -> Gc[src]
pub fn gc(&self) -> Gcpub fn push_function<F: Function>(&mut self) -> Result<()>[src]
pub fn push_function<F: Function>(&mut self) -> Result<()>pub fn push_udata<U: UserData>(&mut self, data: U) -> Result<()>[src]
pub fn push_udata<U: UserData>(&mut self, data: U) -> Result<()>pub fn push<T: IntoLua>(&mut self, value: T) -> Result<()>[src]
pub fn push<T: IntoLua>(&mut self, value: T) -> Result<()>pub fn get_udata<T: FromLua, I: Into<Index>>(&self, idx: I) -> Result<&T>[src]
pub fn get_udata<T: FromLua, I: Into<Index>>(&self, idx: I) -> Result<&T>pub fn get_udata_mut<T: FromLuaMut, I: Into<Index>>(
&mut self,
idx: I
) -> Result<&mut T>[src]
pub fn get_udata_mut<T: FromLuaMut, I: Into<Index>>(
&mut self,
idx: I
) -> Result<&mut T>pub fn push_nil(&mut self) -> Result<()>[src]
pub fn push_nil(&mut self) -> Result<()>pub fn push_table(&mut self) -> Result<()>[src]
pub fn push_table(&mut self) -> Result<()>pub fn is_function<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_function<I: Into<Index>>(&self, idx: I) -> boolpub fn is_udata<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_udata<I: Into<Index>>(&self, idx: I) -> boolpub fn is_light_udata<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_light_udata<I: Into<Index>>(&self, idx: I) -> boolpub fn is_nil<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_nil<I: Into<Index>>(&self, idx: I) -> boolpub fn is_number<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_number<I: Into<Index>>(&self, idx: I) -> boolpub fn is_integer<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_integer<I: Into<Index>>(&self, idx: I) -> boolpub fn is_string<I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is_string<I: Into<Index>>(&self, idx: I) -> boolpub fn is<T: ?Sized + CheckLua, I: Into<Index>>(&self, idx: I) -> bool[src]
pub fn is<T: ?Sized + CheckLua, I: Into<Index>>(&self, idx: I) -> boolpub fn get<'a, T, I>(&'a self, idx: I) -> Result<T> where
T: FromLua<'a>,
I: Into<Index>, [src]
pub fn get<'a, T, I>(&'a self, idx: I) -> Result<T> where
T: FromLua<'a>,
I: Into<Index>, pub fn insert<I: Into<Index>>(&mut self, idx: I)[src]
pub fn insert<I: Into<Index>>(&mut self, idx: I)pub fn replace<I: Into<Index>>(&mut self, idx: I)[src]
pub fn replace<I: Into<Index>>(&mut self, idx: I)pub fn remove<I: Into<Index>>(&mut self, idx: I)[src]
pub fn remove<I: Into<Index>>(&mut self, idx: I)pub fn raw_len<I: Into<Index>>(&self, idx: I) -> usize[src]
pub fn raw_len<I: Into<Index>>(&self, idx: I) -> usizepub fn stack_size(&self) -> usize[src]
pub fn stack_size(&self) -> usizepub fn set_global<N: AsCStr>(&mut self, n: N)[src]
pub fn set_global<N: AsCStr>(&mut self, n: N)pub fn get_global<N: AsCStr>(&mut self, n: N) -> Result<()>[src]
pub fn get_global<N: AsCStr>(&mut self, n: N) -> Result<()>pub fn set_table<I: Into<Index>>(&mut self, idx: I)[src]
pub fn set_table<I: Into<Index>>(&mut self, idx: I)pub fn raw_seti<I: Into<Index>>(&mut self, idx: I, i: i64)[src]
pub fn raw_seti<I: Into<Index>>(&mut self, idx: I, i: i64)impl State[src]
impl StateTrait Implementations
impl Debug for State[src]
impl Debug for Statefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Drop for State[src]
impl Drop for State