Struct cairo_lang_syntax::node::ast::StatementReturn   
source · pub struct StatementReturn { /* private fields */ }Implementations§
source§impl StatementReturn
 
impl StatementReturn
pub const INDEX_RETURN_KW: usize = 0usize
pub const INDEX_EXPR_CLAUSE: usize = 1usize
pub const INDEX_SEMICOLON: usize = 2usize
pub fn new_green( db: &dyn SyntaxGroup, return_kw: TerminalReturnGreen, expr_clause: OptionExprClauseGreen, semicolon: TerminalSemicolonGreen ) -> StatementReturnGreen
source§impl StatementReturn
 
impl StatementReturn
pub fn return_kw(&self, db: &dyn SyntaxGroup) -> TerminalReturn
pub fn expr_clause(&self, db: &dyn SyntaxGroup) -> OptionExprClause
pub fn semicolon(&self, db: &dyn SyntaxGroup) -> TerminalSemicolon
Trait Implementations§
source§impl Clone for StatementReturn
 
impl Clone for StatementReturn
source§fn clone(&self) -> StatementReturn
 
fn clone(&self) -> StatementReturn
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 StatementReturn
 
impl Debug for StatementReturn
source§impl Hash for StatementReturn
 
impl Hash for StatementReturn
source§impl PartialEq for StatementReturn
 
impl PartialEq for StatementReturn
source§fn eq(&self, other: &StatementReturn) -> bool
 
fn eq(&self, other: &StatementReturn) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl TypedSyntaxNode for StatementReturn
 
impl TypedSyntaxNode for StatementReturn
source§const OPTIONAL_KIND: Option<SyntaxKind> = _
 
const OPTIONAL_KIND: Option<SyntaxKind> = _
The relevant SyntaxKind. None for enums.
type StablePtr = StatementReturnPtr
type Green = StatementReturnGreen
fn missing(db: &dyn SyntaxGroup) -> Self::Green
fn from_syntax_node(db: &dyn SyntaxGroup, node: SyntaxNode) -> Self
fn as_syntax_node(&self) -> SyntaxNode
fn stable_ptr(&self) -> Self::StablePtr
impl Eq for StatementReturn
impl StructuralEq for StatementReturn
impl StructuralPartialEq for StatementReturn
Auto Trait Implementations§
impl RefUnwindSafe for StatementReturn
impl Send for StatementReturn
impl Sync for StatementReturn
impl Unpin for StatementReturn
impl UnwindSafe for StatementReturn
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
source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.