Struct cargo_tarpaulin::source_analysis::SourceAnalysis
source · [−]pub struct SourceAnalysis {
pub lines: HashMap<PathBuf, LineAnalysis>,
pub branches: HashMap<PathBuf, BranchAnalysis>,
/* private fields */
}
Fields
lines: HashMap<PathBuf, LineAnalysis>
branches: HashMap<PathBuf, BranchAnalysis>
Implementations
sourceimpl SourceAnalysis
impl SourceAnalysis
pub fn new() -> Self
pub fn get_line_analysis(&mut self, path: PathBuf) -> &mut LineAnalysis
pub fn get_branch_analysis(&mut self, path: PathBuf) -> &mut BranchAnalysis
pub fn get_analysis(config: &Config) -> Self
sourcepub fn debug_printout(&self, config: &Config)
pub fn debug_printout(&self, config: &Config)
Printout a debug summary of the results of source analysis if debug logging is enabled
Trait Implementations
sourceimpl Default for SourceAnalysis
impl Default for SourceAnalysis
sourcefn default() -> SourceAnalysis
fn default() -> SourceAnalysis
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SourceAnalysis
impl Send for SourceAnalysis
impl Sync for SourceAnalysis
impl Unpin for SourceAnalysis
impl UnwindSafe for SourceAnalysis
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more