pub struct BranchType(pub u8);Expand description
Branch type as used by the last branch record.
This is a field present within BranchEntry. It is not documented in the
manpage but is present within the perf_event headers.
Tuple Fields§
§0: u8Implementations§
Source§impl BranchType
impl BranchType
pub const UNKNOWN: BranchType
pub const COND: BranchType
pub const UNCOND: BranchType
pub const IND: BranchType
pub const CALL: BranchType
pub const IND_CALL: BranchType
pub const RET: BranchType
pub const SYSCALL: BranchType
pub const COND_CALL: BranchType
pub const COND_RET: BranchType
Source§impl BranchType
impl BranchType
Sourcepub const fn new(value: u8) -> BranchType
pub const fn new(value: u8) -> BranchType
Create a new BranchType.
Trait Implementations§
Source§impl Clone for BranchType
impl Clone for BranchType
Source§fn clone(&self) -> BranchType
fn clone(&self) -> BranchType
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 BranchType
impl Debug for BranchType
Source§impl From<u8> for BranchType
impl From<u8> for BranchType
Source§fn from(value: u8) -> BranchType
fn from(value: u8) -> BranchType
Converts to this type from the input type.
Source§impl Hash for BranchType
impl Hash for BranchType
Source§impl PartialEq for BranchType
impl PartialEq for BranchType
impl Copy for BranchType
impl Eq for BranchType
impl StructuralPartialEq for BranchType
Auto Trait Implementations§
impl Freeze for BranchType
impl RefUnwindSafe for BranchType
impl Send for BranchType
impl Sync for BranchType
impl Unpin for BranchType
impl UnwindSafe for BranchType
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