pub enum ControlStructureTypes {
Show 16 variants
UnknownControlStructureType = 0,
Break = 1,
Continue = 2,
While = 3,
Do = 4,
For = 5,
Goto = 6,
If = 7,
Else = 8,
Switch = 9,
Try = 10,
Throw = 11,
Match = 12,
Yield = 13,
Catch = 14,
Finally = 15,
}
Variants§
UnknownControlStructureType = 0
Break = 1
Represents a break statement. Labeled breaks are expected to have a JUMP_LABEL node AST child with ORDER 1
Continue = 2
Represents a continue statement. Labeled continues are expected to have a JUMP_LABEL node AST child with ORDER 1
While = 3
Represents a while statement
Do = 4
Represents a do statement
For = 5
Represents a for statement
Goto = 6
Represents a goto statement
If = 7
Represents an if statement
Else = 8
Represents an else statement
Switch = 9
Represents a switch statement
Try = 10
Represents a try statement
Throw = 11
Represents a throw statement
Match = 12
Represents a match expression
Yield = 13
Represents a yield expression
Catch = 14
Represents a catch clause
Finally = 15
Represents a finally clause
Trait Implementations§
Source§impl Clone for ControlStructureTypes
impl Clone for ControlStructureTypes
Source§fn clone(&self) -> ControlStructureTypes
fn clone(&self) -> ControlStructureTypes
Returns a copy 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 ControlStructureTypes
impl Debug for ControlStructureTypes
Source§impl<'de> Deserialize<'de> for ControlStructureTypes
impl<'de> Deserialize<'de> for ControlStructureTypes
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 Hash for ControlStructureTypes
impl Hash for ControlStructureTypes
Source§impl Ord for ControlStructureTypes
impl Ord for ControlStructureTypes
Source§fn cmp(&self, other: &ControlStructureTypes) -> Ordering
fn cmp(&self, other: &ControlStructureTypes) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ControlStructureTypes
impl PartialEq for ControlStructureTypes
Source§impl PartialOrd for ControlStructureTypes
impl PartialOrd for ControlStructureTypes
Source§impl Serialize for ControlStructureTypes
impl Serialize for ControlStructureTypes
impl Copy for ControlStructureTypes
impl Eq for ControlStructureTypes
impl StructuralPartialEq for ControlStructureTypes
Auto Trait Implementations§
impl Freeze for ControlStructureTypes
impl RefUnwindSafe for ControlStructureTypes
impl Send for ControlStructureTypes
impl Sync for ControlStructureTypes
impl Unpin for ControlStructureTypes
impl UnwindSafe for ControlStructureTypes
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