Struct debris_mir::mir_nodes::Branch
source · pub struct Branch {
pub span: Span,
pub is_comptime: bool,
pub condition_span: Span,
pub return_value: MirObjectId,
pub condition: MirObjectId,
pub pos_branch: MirContextId,
pub neg_branch: MirContextId,
}
Expand description
An if-statement which has a condition, a return value and two possible branches
Fields§
§span: Span
§is_comptime: bool
§condition_span: Span
§return_value: MirObjectId
§condition: MirObjectId
§pos_branch: MirContextId
§neg_branch: MirContextId
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
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