pub enum StructuredBlockEnd {
Callsite(Vec<VariableId>),
Return {
refs: Vec<VariableId>,
returns: Vec<VariableId>,
},
Panic {
refs: Vec<VariableId>,
data: VariableId,
},
Unreachable,
}
Expand description
Describes what happens to the program flow at the end of a StructuredBlock
.
Variants§
Callsite(Vec<VariableId>)
This block returns to the call-site, outputting variables to the call-site.
Return
This block ends with a return
statement, exiting the function.
Panic
This block ends with a panic
statement, exiting the function.
Unreachable
The last statement ended the flow (e.g., match will all arms ending in return), and the end of this block is unreachable.
Trait Implementations§
source§impl Clone for StructuredBlockEnd
impl Clone for StructuredBlockEnd
source§fn clone(&self) -> StructuredBlockEnd
fn clone(&self) -> StructuredBlockEnd
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 StructuredBlockEnd
impl Debug for StructuredBlockEnd
source§impl DebugWithDb<LoweredFormatter<'_>> for StructuredBlockEnd
impl DebugWithDb<LoweredFormatter<'_>> for StructuredBlockEnd
source§impl PartialEq<StructuredBlockEnd> for StructuredBlockEnd
impl PartialEq<StructuredBlockEnd> for StructuredBlockEnd
source§fn eq(&self, other: &StructuredBlockEnd) -> bool
fn eq(&self, other: &StructuredBlockEnd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<StructuredBlockEnd> for FlatBlockEnd
impl TryFrom<StructuredBlockEnd> for FlatBlockEnd
impl Eq for StructuredBlockEnd
impl StructuralEq for StructuredBlockEnd
impl StructuralPartialEq for StructuredBlockEnd
Auto Trait Implementations§
impl RefUnwindSafe for StructuredBlockEnd
impl Send for StructuredBlockEnd
impl Sync for StructuredBlockEnd
impl Unpin for StructuredBlockEnd
impl UnwindSafe for StructuredBlockEnd
Blanket Implementations§
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.