pub enum Label {
Named {
name: String,
params: Vec<BlockParamDecl>,
span: SourceSpan,
},
Address {
value: u64,
span: SourceSpan,
},
}Expand description
A branch target or label declaration — either a named label or a block address.
Variants§
Named
A named label such as <entry> or <done @v1 @v2>. Generates a BlockId binding.
Fields
§
params: Vec<BlockParamDecl>Block parameters declared on this label (e.g. @v1, @v2:i64).
Non-empty only when this Label appears inside a LabelDecl.
§
span: SourceSpanAddress
A numeric address such as <0x1001>. Sets the block’s address; no binding generated.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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