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