pub struct LuaIfStatement {
pub condition: LuaExpression,
pub then_block: Vec<LuaStatement>,
pub else_ifs: Vec<(LuaExpression, Vec<LuaStatement>)>,
pub else_block: Option<Vec<LuaStatement>>,
}Expand description
If statement
Fields§
§condition: LuaExpressionThe condition of the if block.
then_block: Vec<LuaStatement>The block of the if part.
else_ifs: Vec<(LuaExpression, Vec<LuaStatement>)>Else-if blocks.
else_block: Option<Vec<LuaStatement>>The block of the else part.
Trait Implementations§
Source§impl Clone for LuaIfStatement
impl Clone for LuaIfStatement
Source§fn clone(&self) -> LuaIfStatement
fn clone(&self) -> LuaIfStatement
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 LuaIfStatement
impl Debug for LuaIfStatement
Source§impl<'de> Deserialize<'de> for LuaIfStatement
impl<'de> Deserialize<'de> for LuaIfStatement
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 LuaIfStatement
impl Serialize for LuaIfStatement
Source§impl ToSource for LuaIfStatement
impl ToSource for LuaIfStatement
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 LuaIfStatement
impl RefUnwindSafe for LuaIfStatement
impl Send for LuaIfStatement
impl Sync for LuaIfStatement
impl Unpin for LuaIfStatement
impl UnsafeUnpin for LuaIfStatement
impl UnwindSafe for LuaIfStatement
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