[−][src]Struct rustc_mir::transform::coverage::graph::BcbBranch
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]
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 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.