[−][src]Struct rustc_mir::transform::coverage::graph::BcbBranch

pub(in transform::coverage) struct BcbBranch {
    pub edge_from_bcb: Option<BasicCoverageBlock>,
    pub target_bcb: BasicCoverageBlock,
}

Represents a successor from a branching BasicCoverageBlock (such as the arms of a SwitchInt) as either the successor BCB itself, if it has only one incoming edge, or the successor plus the specific branching BCB, representing the edge between the two. The latter case distinguishes this incoming edge from other incoming edges to the same target_bcb.

Fields

edge_from_bcb: Option<BasicCoverageBlock>target_bcb: BasicCoverageBlock

Implementations

impl BcbBranch[src]

pub fn from_to(
    from_bcb: BasicCoverageBlock,
    to_bcb: BasicCoverageBlock,
    basic_coverage_blocks: &CoverageGraph
) -> Self
[src]

pub fn counter<'a>(
    &self,
    basic_coverage_blocks: &'a CoverageGraph
) -> Option<&'a CoverageKind>
[src]

pub fn is_only_path_to_target(&self) -> bool[src]

Trait Implementations

impl Clone for BcbBranch[src]

impl Copy for BcbBranch[src]

impl Debug for BcbBranch[src]

impl Eq for BcbBranch[src]

impl PartialEq<BcbBranch> for BcbBranch[src]

impl StructuralEq for BcbBranch[src]

impl StructuralPartialEq for BcbBranch[src]

Auto Trait Implementations

impl RefUnwindSafe for BcbBranch

impl Send for BcbBranch

impl Sync for BcbBranch

impl Unpin for BcbBranch

impl UnwindSafe for BcbBranch

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]