[][src]Enum lcov::record::RecordKind

pub enum RecordKind {
    TestName,
    SourceFile,
    FunctionName,
    FunctionData,
    FunctionsFound,
    FunctionsHit,
    BranchData,
    BranchesFound,
    BranchesHit,
    LineData,
    LinesFound,
    LinesHit,
    EndOfRecord,
}

Represents all LCOV record kinds.

Variants

TestName

Represents a TN record.

SourceFile

Represents a SF record.

FunctionName

Represents a FN record.

FunctionData

Represents a FNDA record.

FunctionsFound

Represents a FNF record.

FunctionsHit

Represents a FNH record.

BranchData

Represents a BRDA record.

BranchesFound

Represents a BRF record.

BranchesHit

Represents a BRH record.

LineData

Represents a DA record.

LinesFound

Represents a LF record.

LinesHit

Represents a LH record.

EndOfRecord

Represents a end_of_record record.

Implementations

impl RecordKind[src]

pub fn as_str(&self) -> &'static str[src]

Returns the corresponding &str for the record kind.

Examples

use lcov::RecordKind;
assert_eq!(RecordKind::TestName.as_str(), "TN");

Trait Implementations

impl Clone for RecordKind[src]

impl Copy for RecordKind[src]

impl Debug for RecordKind[src]

impl Display for RecordKind[src]

impl Eq for RecordKind[src]

impl FromStr for RecordKind[src]

type Err = ParseRecordKindError

The associated error which can be returned from parsing.

impl Ord for RecordKind[src]

impl PartialEq<RecordKind> for RecordKind[src]

impl PartialOrd<RecordKind> for RecordKind[src]

impl StructuralEq for RecordKind[src]

impl StructuralPartialEq for RecordKind[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.