pub struct JumpStatement {
pub condition: Box<AstNode>,
pub target: Box<AstNode>,
}Expand description
Represents a conditional jump from current location to a specified label
Fields§
§condition: Box<AstNode>The condition based on which the current statement will perform a jump
target: Box<AstNode>The target location (Label) the statement will jump to
Trait Implementations§
Source§impl Clone for JumpStatement
impl Clone for JumpStatement
Source§fn clone(&self) -> JumpStatement
fn clone(&self) -> JumpStatement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JumpStatement
impl Debug for JumpStatement
Source§impl<'de> Deserialize<'de> for JumpStatementwhere
'de: 'static,
impl<'de> Deserialize<'de> for JumpStatementwhere
'de: 'static,
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 PartialEq for JumpStatement
impl PartialEq for JumpStatement
Source§fn eq(&self, other: &JumpStatement) -> bool
fn eq(&self, other: &JumpStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JumpStatement
impl Serialize for JumpStatement
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AstStatement> for &'__deriveMoreLifetime JumpStatement
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AstStatement> for &'__deriveMoreLifetime JumpStatement
Source§type Error = TryIntoError<&'__deriveMoreLifetime AstStatement>
type Error = TryIntoError<&'__deriveMoreLifetime AstStatement>
The type returned in the event of a conversion error.
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AstStatement> for &'__deriveMoreLifetime mut JumpStatement
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AstStatement> for &'__deriveMoreLifetime mut JumpStatement
Source§type Error = TryIntoError<&'__deriveMoreLifetime mut AstStatement>
type Error = TryIntoError<&'__deriveMoreLifetime mut AstStatement>
The type returned in the event of a conversion error.
Source§impl TryFrom<AstStatement> for JumpStatement
impl TryFrom<AstStatement> for JumpStatement
Source§type Error = TryIntoError<AstStatement>
type Error = TryIntoError<AstStatement>
The type returned in the event of a conversion error.
Source§impl Walker for JumpStatement
impl Walker for JumpStatement
fn walk<V>(&self, visitor: &mut V)where
V: AstVisitor,
Source§impl WalkerMut for JumpStatement
impl WalkerMut for JumpStatement
fn walk<V>(&mut self, visitor: &mut V)where
V: AstVisitorMut,
impl StructuralPartialEq for JumpStatement
Auto Trait Implementations§
impl Freeze for JumpStatement
impl RefUnwindSafe for JumpStatement
impl Send for JumpStatement
impl Sync for JumpStatement
impl Unpin for JumpStatement
impl UnsafeUnpin for JumpStatement
impl UnwindSafe for JumpStatement
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