[−][src]Enum full_moon::ast::Stmt
A statement that stands alone
Variants
Assignment(Assignment<'a>)
An assignment, such as x = 1
Do(Block<'a>)
A do block, do end
FunctionCall(Box<FunctionCall<'a>>)
A function call on its own, such as call()
FunctionDeclaration(Box<FunctionDeclaration<'a>>)
A function declaration, such as function x() end
GenericFor(Box<GenericFor<'a>>)
A generic for loop, such as for index, value in pairs(list) do end
If(Box<If<'a>>)
An if statement
LocalAssignment(LocalAssignment<'a>)
A local assignment, such as local x = 1
LocalFunction(LocalFunction<'a>)
A local function declaration, such as local function x() end
NumericFor(Box<NumericFor<'a>>)
A numeric for loop, such as for index = 1, 10 do end
Repeat(Box<Repeat<'a>>)
A repeat loop
While(Box<While<'a>>)
A while loop
Trait Implementations
impl<'a> PartialEq<Stmt<'a>> for Stmt<'a>
[src]
impl<'a> Clone for Stmt<'a>
[src]
fn clone(&self) -> Stmt<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for Stmt<'a>
[src]
impl<'a> Serialize for Stmt<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de: 'a, 'a> Deserialize<'de> for Stmt<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,