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)EndOfRecord
Trait Implementations
impl Debug for LCOVRecord[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for LCOVRecord[src]
fn eq(&self, __arg_0: &LCOVRecord) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LCOVRecord) -> bool[src]
This method tests for !=.
impl Clone for LCOVRecord[src]
fn clone(&self) -> LCOVRecord[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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);
impl From<LineData> for LCOVRecord[src]
impl From<FunctionName> for LCOVRecord[src]
fn from(input: FunctionName) -> Self[src]
Performs the conversion.
impl From<FunctionData> for LCOVRecord[src]
fn from(input: FunctionData) -> Self[src]
Performs the conversion.
impl From<BranchData> for LCOVRecord[src]
fn from(input: BranchData) -> Self[src]
Performs the conversion.