use crate::{LuaState, ffi};
impl LuaState {
#[inline]
#[must_use]
pub fn is_boolean(&self, index: i32) -> bool {
unsafe { ffi::lua_isboolean(self.0, index) != 0 }
}
#[inline]
#[must_use]
pub fn to_boolean(&self, index: i32) -> bool {
unsafe { ffi::lua_toboolean(self.0, index) != 0 }
}
#[inline]
pub fn push_boolean(&mut self, boolean: bool) {
unsafe { ffi::lua_pushboolean(self.0, i32::from(boolean)); }
}
}