pub struct LuaFunction {
pub name: Option<String>,
pub params: Vec<String>,
pub vararg: bool,
pub body: Vec<LuaStmt>,
pub is_local: bool,
pub is_method: bool,
}Expand description
A named Lua function definition.
Fields§
§name: Option<String>Function name (None for anonymous)
params: Vec<String>Parameter names
vararg: boolWhether the function accepts varargs (...)
body: Vec<LuaStmt>Function body statements
is_local: boolWhether the function is local
is_method: boolWhether the function is a method (uses : syntax)
Implementations§
Trait Implementations§
Source§impl Clone for LuaFunction
impl Clone for LuaFunction
Source§fn clone(&self) -> LuaFunction
fn clone(&self) -> LuaFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LuaFunction
impl Debug for LuaFunction
Source§impl Display for LuaFunction
impl Display for LuaFunction
Source§impl PartialEq for LuaFunction
impl PartialEq for LuaFunction
impl StructuralPartialEq for LuaFunction
Auto Trait Implementations§
impl Freeze for LuaFunction
impl RefUnwindSafe for LuaFunction
impl Send for LuaFunction
impl Sync for LuaFunction
impl Unpin for LuaFunction
impl UnsafeUnpin for LuaFunction
impl UnwindSafe for LuaFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more