pub struct BranchDataRecordEntry {
pub line_number: usize,
pub exception: bool,
pub block_id: usize,
pub branch: Either<usize, String>,
pub taken: Option<usize>,
}Expand description
Branch coverage information
block_id and branch uniquely identify the particular edge
Fields§
§line_number: usizeThe line number of the branch
exception: boolWhether the branch is an exception or related to exception handling
block_id: usizeThe block ID of the branch
branch: Either<usize, String>The branch number or expression associated with the branch
taken: Option<usize>Whether the branch was taken and how many times
Trait Implementations§
Source§impl Clone for BranchDataRecordEntry
impl Clone for BranchDataRecordEntry
Source§fn clone(&self) -> BranchDataRecordEntry
fn clone(&self) -> BranchDataRecordEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BranchDataRecordEntry
impl Debug for BranchDataRecordEntry
Source§impl Display for BranchDataRecordEntry
impl Display for BranchDataRecordEntry
Source§impl FromStr for BranchDataRecordEntry
impl FromStr for BranchDataRecordEntry
Source§impl PartialEq for BranchDataRecordEntry
impl PartialEq for BranchDataRecordEntry
impl Eq for BranchDataRecordEntry
impl StructuralPartialEq for BranchDataRecordEntry
Auto Trait Implementations§
impl Freeze for BranchDataRecordEntry
impl RefUnwindSafe for BranchDataRecordEntry
impl Send for BranchDataRecordEntry
impl Sync for BranchDataRecordEntry
impl Unpin for BranchDataRecordEntry
impl UnwindSafe for BranchDataRecordEntry
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> 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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more