pub struct BranchUnit(/* private fields */);
Expand description
Units of the branch
§Examples
use lcov_parser::branch::BranchUnit;
let branch1 = BranchUnit::new(1, 1);
let branch2 = BranchUnit::new(1, 1);
assert!(branch1 == branch2);
let not_eq_branch1 = BranchUnit::new(1, 1);
let not_eq_branch2 = BranchUnit::new(1, 2);
assert!(not_eq_branch1 != not_eq_branch2);
Implementations§
Trait Implementations§
Source§impl Clone for BranchUnit
impl Clone for BranchUnit
Source§fn clone(&self) -> BranchUnit
fn clone(&self) -> BranchUnit
Returns a copy 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 BranchUnit
impl Debug for BranchUnit
Source§impl Display for BranchUnit
impl Display for BranchUnit
Source§impl Hash for BranchUnit
impl Hash for BranchUnit
Source§impl Ord for BranchUnit
impl Ord for BranchUnit
Source§fn cmp(&self, other: &BranchUnit) -> Ordering
fn cmp(&self, other: &BranchUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BranchUnit
impl PartialEq for BranchUnit
Source§impl PartialOrd for BranchUnit
impl PartialOrd for BranchUnit
Source§impl Summary<BranchUnit, Branch> for BranchBlocks
impl Summary<BranchUnit, Branch> for BranchBlocks
impl Eq for BranchUnit
impl StructuralPartialEq for BranchUnit
Auto Trait Implementations§
impl Freeze for BranchUnit
impl RefUnwindSafe for BranchUnit
impl Send for BranchUnit
impl Sync for BranchUnit
impl Unpin for BranchUnit
impl UnwindSafe for BranchUnit
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