Struct cairo_lang_lowering::objects::FlatBlock
source · pub struct FlatBlock {
pub statements: Vec<Statement>,
pub end: FlatBlockEnd,
}
Expand description
A block of statements. Unlike FlatBlock
, this has no reference information,
and no panic ending.
Fields§
§statements: Vec<Statement>
Statements sequence running one after the other in the block, in a linear flow.
Note: Inner blocks might end with a return
, which will exit the function in the middle.
Note: Match is a possible statement, which means it has control flow logic inside, but
after its execution is completed, the flow returns to the following statement of the block.
end: FlatBlockEnd
Describes how this block ends: returns to the caller or exits the function.
Implementations§
Trait Implementations§
source§impl DebugWithDb<LoweredFormatter<'_>> for FlatBlock
impl DebugWithDb<LoweredFormatter<'_>> for FlatBlock
source§impl PartialEq<FlatBlock> for FlatBlock
impl PartialEq<FlatBlock> for FlatBlock
impl Eq for FlatBlock
impl StructuralEq for FlatBlock
impl StructuralPartialEq for FlatBlock
Auto Trait Implementations§
impl RefUnwindSafe for FlatBlock
impl Send for FlatBlock
impl Sync for FlatBlock
impl Unpin for FlatBlock
impl UnwindSafe for FlatBlock
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.