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

pub(super) struct BcbBranch {
    pub edge_from_bcb: Option<BasicCoverageBlock>,
    pub target_bcb: BasicCoverageBlock,
}
Expand description

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]

fn clone(&self) -> BcbBranch[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for BcbBranch[src]

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<BcbBranch> for BcbBranch[src]

fn eq(&self, other: &BcbBranch) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &BcbBranch) -> bool[src]

This method tests for !=.

impl Copy for BcbBranch[src]

impl Eq 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> WithConstness for T[src]

fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]

fn with_const(self) -> ConstnessAnd<Self>[src]

fn without_const(self) -> ConstnessAnd<Self>[src]