Struct linux_perf_data::FeatureSet
source · [−]Expand description
The set of features used in the perf file. The perf file contains one feature section for each feature.
This set is provided in the perf file header. It has room for 4 * 64 = 256 feature bits.
Tuple Fields
0: [u64; 4]Implementations
sourceimpl FeatureSet
impl FeatureSet
pub const MAX_BITS: u32 = 256u32
sourcepub fn iter(&self) -> FeatureSetIterⓘNotable traits for FeatureSetIterimpl Iterator for FeatureSetIter type Item = Feature;
pub fn iter(&self) -> FeatureSetIterⓘNotable traits for FeatureSetIterimpl Iterator for FeatureSetIter type Item = Feature;
Returns an iterator over all features in this set, from low to high.
sourcepub fn has_feature(&self, feature: Feature) -> bool
pub fn has_feature(&self, feature: Feature) -> bool
Checks if the feature is contained in this set.
Trait Implementations
sourceimpl Clone for FeatureSet
impl Clone for FeatureSet
sourcefn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FeatureSet
impl Debug for FeatureSet
sourceimpl Hash for FeatureSet
impl Hash for FeatureSet
sourceimpl PartialEq<FeatureSet> for FeatureSet
impl PartialEq<FeatureSet> for FeatureSet
sourcefn eq(&self, other: &FeatureSet) -> bool
fn eq(&self, other: &FeatureSet) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FeatureSet) -> bool
fn ne(&self, other: &FeatureSet) -> bool
This method tests for !=.
impl Copy for FeatureSet
impl Eq for FeatureSet
impl StructuralEq for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementations
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnwindSafe for FeatureSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more