#[non_exhaustive]pub struct PirEdge {
pub from: PirId,
pub to: Option<PirId>,
pub kind: PirEdgeKind,
}Expand description
One control-flow edge between PIR nodes.
A to of None represents an exit, unknown, or dynamic continuation that
must remain visible rather than be dropped.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.from: PirIdSource node.
to: Option<PirId>Destination node, or None for an exit/unknown continuation.
kind: PirEdgeKindEdge category.
Trait Implementations§
impl Copy for PirEdge
impl Eq for PirEdge
impl StructuralPartialEq for PirEdge
Auto Trait Implementations§
impl Freeze for PirEdge
impl RefUnwindSafe for PirEdge
impl Send for PirEdge
impl Sync for PirEdge
impl Unpin for PirEdge
impl UnsafeUnpin for PirEdge
impl UnwindSafe for PirEdge
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