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: BasicCoverageBlockImplementations
impl BcbBranch[src]
impl BcbBranch[src]pub fn from_to(
from_bcb: BasicCoverageBlock,
to_bcb: BasicCoverageBlock,
basic_coverage_blocks: &CoverageGraph
) -> Self[src]
from_bcb: BasicCoverageBlock,
to_bcb: BasicCoverageBlock,
basic_coverage_blocks: &CoverageGraph
) -> Self
pub fn counter<'a>(
&self,
basic_coverage_blocks: &'a CoverageGraph
) -> Option<&'a CoverageKind>[src]
&self,
basic_coverage_blocks: &'a CoverageGraph
) -> Option<&'a CoverageKind>
pub fn is_only_path_to_target(&self) -> bool[src]
Trait Implementations
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
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]
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> WithConstness for T[src]
impl<T> WithConstness for T[src]