Struct cairo_lang_semantic::expr::objects::StatementReturn
source · pub struct StatementReturn {
pub expr_option: Option<ExprId>,
pub stable_ptr: StatementPtr,
}
Fields§
§expr_option: Option<ExprId>
§stable_ptr: StatementPtr
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<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for StatementReturn
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> 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<T: SemanticRewriter<Option<ExprId>, Error>, Error> SemanticObject<T, Error> for StatementReturn
impl<T: SemanticRewriter<Option<ExprId>, Error>, Error> SemanticObject<T, Error> for StatementReturn
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<StatementReturn, NoError> for Inference<'a>
impl<'a> SemanticRewriter<StatementReturn, NoError> for Inference<'a>
fn rewrite( &mut self, value: StatementReturn ) -> Result<StatementReturn, NoError>
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.