Struct perf_event_data::BranchType
source · 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: Self = _
pub const COND: Self = _
pub const UNCOND: Self = _
pub const IND: Self = _
pub const CALL: Self = _
pub const IND_CALL: Self = _
pub const RET: Self = _
pub const SYSCALL: Self = _
pub const COND_CALL: Self = _
pub const COND_RET: Self = _
Trait Implementations§
source§impl Clone for BranchType
impl Clone for BranchType
source§fn clone(&self) -> BranchType
fn clone(&self) -> BranchType
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 From<BranchType> for u8
impl From<BranchType> for u8
source§fn from(value: BranchType) -> Self
fn from(value: BranchType) -> Self
Converts to this type from the input type.
source§impl From<u8> for BranchType
impl From<u8> for BranchType
source§impl Hash for BranchType
impl Hash for BranchType
source§impl PartialEq for BranchType
impl PartialEq for BranchType
source§fn eq(&self, other: &BranchType) -> bool
fn eq(&self, other: &BranchType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for BranchType
impl Eq for BranchType
impl StructuralEq for BranchType
impl StructuralPartialEq for BranchType
Auto Trait Implementations§
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