pub struct SampleFormat { /* private fields */ }
Implementations§
Source§impl SampleFormat
impl SampleFormat
pub const IP: SampleFormat
pub const TID: SampleFormat
pub const TIME: SampleFormat
pub const ADDR: SampleFormat
pub const READ: SampleFormat
pub const CALLCHAIN: SampleFormat
pub const ID: SampleFormat
pub const CPU: SampleFormat
pub const PERIOD: SampleFormat
pub const STREAM_ID: SampleFormat
pub const RAW: SampleFormat
pub const BRANCH_STACK: SampleFormat
pub const REGS_USER: SampleFormat
pub const STACK_USER: SampleFormat
pub const WEIGHT: SampleFormat
pub const DATA_SRC: SampleFormat
pub const IDENTIFIER: SampleFormat
pub const TRANSACTION: SampleFormat
pub const REGS_INTR: SampleFormat
Sourcepub const fn empty() -> SampleFormat
pub const fn empty() -> SampleFormat
Returns an empty set of flags
Sourcepub const fn all() -> SampleFormat
pub const fn all() -> SampleFormat
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u64) -> Option<SampleFormat>
pub fn from_bits(bits: u64) -> Option<SampleFormat>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u64) -> SampleFormat
pub const fn from_bits_truncate(bits: u64) -> SampleFormat
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u64) -> SampleFormat
pub const unsafe fn from_bits_unchecked(bits: u64) -> SampleFormat
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: SampleFormat) -> bool
pub const fn intersects(&self, other: SampleFormat) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: SampleFormat) -> bool
pub const fn contains(&self, other: SampleFormat) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: SampleFormat)
pub fn insert(&mut self, other: SampleFormat)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: SampleFormat)
pub fn remove(&mut self, other: SampleFormat)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: SampleFormat)
pub fn toggle(&mut self, other: SampleFormat)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: SampleFormat, value: bool)
pub fn set(&mut self, other: SampleFormat, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for SampleFormat
impl Binary for SampleFormat
Source§impl BitAnd for SampleFormat
impl BitAnd for SampleFormat
Source§fn bitand(self, other: SampleFormat) -> SampleFormat
fn bitand(self, other: SampleFormat) -> SampleFormat
Returns the intersection between the two sets of flags.
Source§type Output = SampleFormat
type Output = SampleFormat
&
operator.Source§impl BitAndAssign for SampleFormat
impl BitAndAssign for SampleFormat
Source§fn bitand_assign(&mut self, other: SampleFormat)
fn bitand_assign(&mut self, other: SampleFormat)
Disables all flags disabled in the set.
Source§impl BitOr for SampleFormat
impl BitOr for SampleFormat
Source§fn bitor(self, other: SampleFormat) -> SampleFormat
fn bitor(self, other: SampleFormat) -> SampleFormat
Returns the union of the two sets of flags.
Source§type Output = SampleFormat
type Output = SampleFormat
|
operator.Source§impl BitOrAssign for SampleFormat
impl BitOrAssign for SampleFormat
Source§fn bitor_assign(&mut self, other: SampleFormat)
fn bitor_assign(&mut self, other: SampleFormat)
Adds the set of flags.
Source§impl BitXor for SampleFormat
impl BitXor for SampleFormat
Source§fn bitxor(self, other: SampleFormat) -> SampleFormat
fn bitxor(self, other: SampleFormat) -> SampleFormat
Returns the left flags, but with all the right flags toggled.
Source§type Output = SampleFormat
type Output = SampleFormat
^
operator.Source§impl BitXorAssign for SampleFormat
impl BitXorAssign for SampleFormat
Source§fn bitxor_assign(&mut self, other: SampleFormat)
fn bitxor_assign(&mut self, other: SampleFormat)
Toggles the set of flags.
Source§impl Clone for SampleFormat
impl Clone for SampleFormat
Source§fn clone(&self) -> SampleFormat
fn clone(&self) -> SampleFormat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SampleFormat
impl Debug for SampleFormat
Source§impl Extend<SampleFormat> for SampleFormat
impl Extend<SampleFormat> for SampleFormat
Source§fn extend<T: IntoIterator<Item = SampleFormat>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SampleFormat>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<SampleFormat> for SampleFormat
impl FromIterator<SampleFormat> for SampleFormat
Source§fn from_iter<T: IntoIterator<Item = SampleFormat>>(iterator: T) -> SampleFormat
fn from_iter<T: IntoIterator<Item = SampleFormat>>(iterator: T) -> SampleFormat
Source§impl Hash for SampleFormat
impl Hash for SampleFormat
Source§impl LowerHex for SampleFormat
impl LowerHex for SampleFormat
Source§impl Not for SampleFormat
impl Not for SampleFormat
Source§fn not(self) -> SampleFormat
fn not(self) -> SampleFormat
Returns the complement of this set of flags.
Source§type Output = SampleFormat
type Output = SampleFormat
!
operator.Source§impl Octal for SampleFormat
impl Octal for SampleFormat
Source§impl Ord for SampleFormat
impl Ord for SampleFormat
Source§fn cmp(&self, other: &SampleFormat) -> Ordering
fn cmp(&self, other: &SampleFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SampleFormat
impl PartialEq for SampleFormat
Source§impl PartialOrd for SampleFormat
impl PartialOrd for SampleFormat
Source§impl Sub for SampleFormat
impl Sub for SampleFormat
Source§fn sub(self, other: SampleFormat) -> SampleFormat
fn sub(self, other: SampleFormat) -> SampleFormat
Returns the set difference of the two sets of flags.
Source§type Output = SampleFormat
type Output = SampleFormat
-
operator.Source§impl SubAssign for SampleFormat
impl SubAssign for SampleFormat
Source§fn sub_assign(&mut self, other: SampleFormat)
fn sub_assign(&mut self, other: SampleFormat)
Disables all flags enabled in the set.