pub enum Edge<'db, 'a> {
Goto {
target: BlockId,
remapping: &'a VarRemapping<'db>,
},
MatchArm {
arm: &'a MatchArm<'db>,
match_info: &'a MatchInfo<'db>,
},
Return {
vars: &'a [VarUsage<'db>],
location: LocationId<'db>,
},
Panic {
var: VarUsage<'db>,
},
}Expand description
Represents an edge in the control flow graph.
Each variant captures the specific information needed for that edge type, enabling analyzers to handle variable introductions and remappings.
Variants§
Goto
A goto edge with variable remapping.
MatchArm
A match arm edge with the arm’s introduced variables.
Return
A return edge (terminal).
Panic
A panic edge (terminal).
Trait Implementations§
Auto Trait Implementations§
impl<'db, 'a> Freeze for Edge<'db, 'a>
impl<'db, 'a> RefUnwindSafe for Edge<'db, 'a>
impl<'db, 'a> Send for Edge<'db, 'a>
impl<'db, 'a> Sync for Edge<'db, 'a>
impl<'db, 'a> Unpin for Edge<'db, 'a>
impl<'db, 'a> UnsafeUnpin for Edge<'db, 'a>
impl<'db, 'a> UnwindSafe for Edge<'db, 'a>
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<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
impl<'db, T> DebugDbUpcast<'db, T> for Twhere
T: ?Sized,
fn debug_db_upcast(&'db self) -> &'db T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more