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