pub struct LuaFunctionStatement {
pub name: Vec<String>,
pub receiver: Option<String>,
pub parameters: Vec<String>,
pub is_vararg: bool,
pub block: Vec<LuaStatement>,
}Expand description
Function definition statement
Fields§
§name: Vec<String>The name parts of the function.
receiver: Option<String>The receiver part (after :) if any.
parameters: Vec<String>The parameters of the function.
is_vararg: boolWhether the function has a vararg parameter.
block: Vec<LuaStatement>The function body.
Trait Implementations§
Source§impl Clone for LuaFunctionStatement
impl Clone for LuaFunctionStatement
Source§fn clone(&self) -> LuaFunctionStatement
fn clone(&self) -> LuaFunctionStatement
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 LuaFunctionStatement
impl Debug for LuaFunctionStatement
Source§impl<'de> Deserialize<'de> for LuaFunctionStatement
impl<'de> Deserialize<'de> for LuaFunctionStatement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LuaFunctionStatement
impl Serialize for LuaFunctionStatement
Source§impl ToSource for LuaFunctionStatement
impl ToSource for LuaFunctionStatement
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for LuaFunctionStatement
impl RefUnwindSafe for LuaFunctionStatement
impl Send for LuaFunctionStatement
impl Sync for LuaFunctionStatement
impl Unpin for LuaFunctionStatement
impl UnsafeUnpin for LuaFunctionStatement
impl UnwindSafe for LuaFunctionStatement
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