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

File type.

File version.

The stamp value uniquely identifies a GCNO between consecutive compilations. The corresponding GCDA will have the same stamp.

Vector of records.

Source of the gcov file

Methods

impl Gcov
[src]

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Gcov
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Gcov
[src]

impl Hash for Gcov
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Gcov
[src]

Formats the value using the given formatter. Read more

impl SerializeWithInterner for Gcov
[src]

Serializes this value with help from an [Interner] that writes [Symbol]s as strings. Read more

Adorns this object with a string interner. Read more

Auto Trait Implementations

impl Send for Gcov

impl Sync for Gcov