Enum lcov_parser::LCOVRecord
[−]
[src]
pub enum LCOVRecord {
TestName(Option<String>),
SourceFile(String),
Data(LineData),
FunctionName(FunctionName),
FunctionData(FunctionData),
FunctionsFound(u32),
FunctionsHit(u32),
LinesHit(u32),
LinesFound(u32),
BranchData(BranchData),
BranchesFound(u32),
BranchesHit(u32),
EndOfRecord,
}Variants
TestName(Option<String>)SourceFile(String)Data(LineData)FunctionName(FunctionName)FunctionData(FunctionData)FunctionsFound(u32)FunctionsHit(u32)LinesHit(u32)LinesFound(u32)BranchData(BranchData)BranchesFound(u32)BranchesHit(u32)EndOfRecordTrait Implementations
impl Debug for LCOVRecord[src]
impl PartialEq for LCOVRecord[src]
fn eq(&self, __arg_0: &LCOVRecord) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LCOVRecord) -> bool
This method tests for !=.
impl Clone for LCOVRecord[src]
fn clone(&self) -> LCOVRecord
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> From<&'a str> for LCOVRecord[src]
Parse the record from &str.
Examples
use lcov_parser:: { LCOVRecord }; let actual = LCOVRecord::from("TN:product_test\n"); let expected = LCOVRecord::TestName(Some("product_test".to_string())); assert_eq!(actual, expected);Run
impl From<LineData> for LCOVRecord[src]
impl From<FunctionName> for LCOVRecord[src]
fn from(input: FunctionName) -> Self
Performs the conversion.
impl From<FunctionData> for LCOVRecord[src]
fn from(input: FunctionData) -> Self
Performs the conversion.
impl From<BranchData> for LCOVRecord[src]
fn from(input: BranchData) -> Self
Performs the conversion.