pub struct Source { /* private fields */ }
Expand description
Struct representing source files and the coverage for coveralls
Implementations§
Source§impl Source
impl Source
Sourcepub fn new(
repo_path: &Path,
path: &Path,
lines: &HashMap<usize, usize>,
branches: &Option<Vec<BranchData>>,
include_source: bool,
) -> Result<Source, Error>
pub fn new( repo_path: &Path, path: &Path, lines: &HashMap<usize, usize>, branches: &Option<Vec<BranchData>>, include_source: bool, ) -> Result<Source, Error>
Creates a source description for a given file. display_name: Name given to the source file repo_path - Path to file relative to repository root path - absolute path on file system lines - map of line numbers to hits branches - optional, vector of branches in code
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Source
impl Ord for Source
Source§impl PartialOrd for Source
impl PartialOrd for Source
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.