pub struct ReturnStatement {
pub condition: Option<Box<AstNode>>,
}Fields§
§condition: Option<Box<AstNode>>Indicates that the given condition must evaluate to true in order for the return to take place.
Only used in CFC where the condition may be Some and None otherwise.
Trait Implementations§
Source§impl Clone for ReturnStatement
impl Clone for ReturnStatement
Source§fn clone(&self) -> ReturnStatement
fn clone(&self) -> ReturnStatement
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 ReturnStatement
impl Debug for ReturnStatement
Source§impl<'de> Deserialize<'de> for ReturnStatementwhere
'de: 'static,
impl<'de> Deserialize<'de> for ReturnStatementwhere
'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 ReturnStatement
impl PartialEq for ReturnStatement
Source§fn eq(&self, other: &ReturnStatement) -> bool
fn eq(&self, other: &ReturnStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReturnStatement
impl Serialize for ReturnStatement
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AstStatement> for &'__deriveMoreLifetime ReturnStatement
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime AstStatement> for &'__deriveMoreLifetime ReturnStatement
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 ReturnStatement
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime mut AstStatement> for &'__deriveMoreLifetime mut ReturnStatement
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 ReturnStatement
impl TryFrom<AstStatement> for ReturnStatement
Source§type Error = TryIntoError<AstStatement>
type Error = TryIntoError<AstStatement>
The type returned in the event of a conversion error.
Source§impl Walker for ReturnStatement
impl Walker for ReturnStatement
fn walk<V>(&self, visitor: &mut V)where
V: AstVisitor,
Source§impl WalkerMut for ReturnStatement
impl WalkerMut for ReturnStatement
fn walk<V>(&mut self, visitor: &mut V)where
V: AstVisitorMut,
impl StructuralPartialEq for ReturnStatement
Auto Trait Implementations§
impl Freeze for ReturnStatement
impl RefUnwindSafe for ReturnStatement
impl Send for ReturnStatement
impl Sync for ReturnStatement
impl Unpin for ReturnStatement
impl UnsafeUnpin for ReturnStatement
impl UnwindSafe for ReturnStatement
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