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

pub(in transform::coverage) struct BasicCoverageBlock {
    private: u32,
}

A node in the [control-flow graph][CFG] of CoverageGraph.

Fields

private: u32

Implementations

impl BasicCoverageBlock[src]

pub(in transform::coverage) const MAX_AS_U32: u32[src]

pub(in transform::coverage) const MAX: Self[src]

pub(in transform::coverage) const fn from_usize(
    value: usize
) -> Self
[src]

pub(in transform::coverage) const fn from_u32(
    value: u32
) -> Self
[src]

pub(in transform::coverage) const unsafe fn from_u32_unchecked(
    value: u32
) -> Self
[src]

pub(in transform::coverage) const fn index(
    self
) -> usize
[src]

Extracts the value of this index as an integer.

pub(in transform::coverage) const fn as_u32(
    self
) -> u32
[src]

Extracts the value of this index as a u32.

pub(in transform::coverage) const fn as_usize(
    self
) -> usize
[src]

Extracts the value of this index as a usize.

Trait Implementations

impl Add<usize> for BasicCoverageBlock[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for BasicCoverageBlock[src]

impl Copy for BasicCoverageBlock[src]

impl Debug for BasicCoverageBlock[src]

impl<D: Decoder> Decodable<D> for BasicCoverageBlock[src]

impl<E: Encoder> Encodable<E> for BasicCoverageBlock[src]

impl Eq for BasicCoverageBlock[src]

impl From<BasicCoverageBlock> for u32[src]

impl From<BasicCoverageBlock> for usize[src]

impl From<u32> for BasicCoverageBlock[src]

impl From<usize> for BasicCoverageBlock[src]

impl Hash for BasicCoverageBlock[src]

impl Idx for BasicCoverageBlock[src]

impl Index<BasicCoverageBlock> for CoverageGraph[src]

type Output = BasicCoverageBlockData

The returned type after indexing.

impl IndexMut<BasicCoverageBlock> for CoverageGraph[src]

impl Ord for BasicCoverageBlock[src]

impl PartialEq<BasicCoverageBlock> for BasicCoverageBlock[src]

impl PartialOrd<BasicCoverageBlock> for BasicCoverageBlock[src]

impl Step for BasicCoverageBlock[src]

impl StructuralEq for BasicCoverageBlock[src]

impl StructuralPartialEq for BasicCoverageBlock[src]

Auto Trait Implementations

impl RefUnwindSafe for BasicCoverageBlock

impl Send for BasicCoverageBlock

impl Sync for BasicCoverageBlock

impl Unpin for BasicCoverageBlock

impl UnwindSafe for BasicCoverageBlock

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]