#[non_exhaustive]pub enum PirEdgeKind {
Fallthrough,
Branch,
Loop,
Return,
DynamicExit,
Unknown,
}Expand description
Control-flow edge category.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fallthrough
Straight-line fallthrough to the next node in the same region.
Branch
Edge taken by a branch arm.
Loop
Edge taken by a loop back-edge or entry.
Return
Edge taken by a return.
DynamicExit
Edge leaving the modeled graph through a dynamic boundary.
Unknown
Conservative unknown edge that must not be dropped silently.
Implementations§
Trait Implementations§
Source§impl Clone for PirEdgeKind
impl Clone for PirEdgeKind
Source§fn clone(&self) -> PirEdgeKind
fn clone(&self) -> PirEdgeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PirEdgeKind
Source§impl Debug for PirEdgeKind
impl Debug for PirEdgeKind
impl Eq for PirEdgeKind
Source§impl Hash for PirEdgeKind
impl Hash for PirEdgeKind
Source§impl PartialEq for PirEdgeKind
impl PartialEq for PirEdgeKind
Source§fn eq(&self, other: &PirEdgeKind) -> bool
fn eq(&self, other: &PirEdgeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PirEdgeKind
Auto Trait Implementations§
impl Freeze for PirEdgeKind
impl RefUnwindSafe for PirEdgeKind
impl Send for PirEdgeKind
impl Sync for PirEdgeKind
impl Unpin for PirEdgeKind
impl UnsafeUnpin for PirEdgeKind
impl UnwindSafe for PirEdgeKind
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