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