Struct cairo_lang_semantic::expr::objects::ExprMatch
source · pub struct ExprMatch {
pub matched_expr: ExprId,
pub arms: Vec<MatchArm>,
pub ty: TypeId,
pub stable_ptr: ExprPtr,
}
Fields§
§matched_expr: ExprId
§arms: Vec<MatchArm>
§ty: TypeId
§stable_ptr: ExprPtr
Trait Implementations§
source§impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for ExprMatch
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for ExprMatch
source§impl PartialEq<ExprMatch> for ExprMatch
impl PartialEq<ExprMatch> for ExprMatch
source§impl<T: SemanticRewriter<ExprId, Error> + SemanticRewriter<Vec<MatchArm>, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprMatch
impl<T: SemanticRewriter<ExprId, Error> + SemanticRewriter<Vec<MatchArm>, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprMatch
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
impl Eq for ExprMatch
impl StructuralEq for ExprMatch
impl StructuralPartialEq for ExprMatch
Auto Trait Implementations§
impl RefUnwindSafe for ExprMatch
impl Send for ExprMatch
impl Sync for ExprMatch
impl Unpin for ExprMatch
impl UnwindSafe for ExprMatch
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.