Struct cov::raw::Gcov [−][src]
pub struct Gcov { pub ty: Type, pub version: Version, pub stamp: u32, pub records: Vec<Record>, pub src: Option<PathBuf>, }
The GCNO/GCDA file content.
Fields
ty: Type
File type.
version: Version
File version.
stamp: u32
The stamp value uniquely identifies a GCNO between consecutive compilations. The corresponding GCDA will have the same stamp.
records: Vec<Record>
Vector of records.
src: Option<PathBuf>
Source of the gcov file
Methods
impl Gcov
[src]
impl Gcov
pub fn open<P: AsRef<Path>>(p: P, interner: &mut Interner) -> Result<Gcov>
[src]
pub fn open<P: AsRef<Path>>(p: P, interner: &mut Interner) -> Result<Gcov>
Parses the file with at the given path as GCNO/GCDA format.
Errors
- Returns
UnknownFileType
if the file is not a in GCNO/GCDA format. - Returns
UnsupportedVersion
if the GCNO/GCDA version is not supported by this crate. - Returns
UnknownTag
if the GCNO/GCDA contains an unrecognized record tag. - Returns
Io
on I/O failure.
Trait Implementations
impl Clone for Gcov
[src]
impl Clone for Gcov
fn clone(&self) -> Gcov
[src]
fn clone(&self) -> Gcov
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Gcov
[src]
impl PartialEq for Gcov
fn eq(&self, other: &Gcov) -> bool
[src]
fn eq(&self, other: &Gcov) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Gcov) -> bool
[src]
fn ne(&self, other: &Gcov) -> bool
This method tests for !=
.
impl Eq for Gcov
[src]
impl Eq for Gcov
impl Hash for Gcov
[src]
impl Hash for Gcov
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Gcov
[src]
impl Debug for Gcov
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl SerializeWithInterner for Gcov
[src]
impl SerializeWithInterner for Gcov
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
interner: &Interner
) -> Result<S::Ok, S::Error>
[src]
fn serialize_with_interner<S: Serializer>(
&self,
serializer: S,
interner: &Interner
) -> Result<S::Ok, S::Error>
Serializes this value with help from an [Interner
] that writes [Symbol
]s as strings. Read more
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
[src]
fn with_interner<'si>(
&self,
interner: &'si Interner
) -> WithInterner<'si, &Self>
Adorns this object with a string interner. Read more