pub enum PerfFieldArray {
None,
Fixed,
RestOfEvent,
RelLoc2,
DataLoc2,
RelLoc4,
DataLoc4,
}Expand description
The type of the array property of PerfFieldFormat.
Array-ness of a field.
Variants§
None
e.g. char val; size:1;.
Fixed
e.g. char val[12]; size:12;.
RestOfEvent
e.g. char val[]; size:0;.
RelLoc2
e.g. __rel_loc char val[]; size:2;.
Value contains relativeOffset. dataLen is determined via strlen.
DataLoc2
e.g. __data_loc char val[]; size:2;.
Value contains offset. dataLen is determined via strlen.
RelLoc4
e.g. __rel_loc char val[]; size:4;.
Value contains (dataLen << 16) | relativeOffset.
DataLoc4
e.g. __data_loc char val[]; size:4;.
Value contains (dataLen << 16) | offset.
Trait Implementations§
Source§impl Clone for PerfFieldArray
impl Clone for PerfFieldArray
Source§fn clone(&self) -> PerfFieldArray
fn clone(&self) -> PerfFieldArray
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 PerfFieldArray
impl Debug for PerfFieldArray
Source§impl Display for PerfFieldArray
impl Display for PerfFieldArray
Source§impl Hash for PerfFieldArray
impl Hash for PerfFieldArray
Source§impl PartialEq for PerfFieldArray
impl PartialEq for PerfFieldArray
impl Copy for PerfFieldArray
impl Eq for PerfFieldArray
impl StructuralPartialEq for PerfFieldArray
Auto Trait Implementations§
impl Freeze for PerfFieldArray
impl RefUnwindSafe for PerfFieldArray
impl Send for PerfFieldArray
impl Sync for PerfFieldArray
impl Unpin for PerfFieldArray
impl UnwindSafe for PerfFieldArray
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