pub struct ExtendedRecordTypes { /* private fields */ }Implementations§
Source§impl ExtendedRecordTypes
impl ExtendedRecordTypes
pub const Eof: ExtendedRecordTypes
pub const BadRecord: ExtendedRecordTypes
Sourcepub const fn empty() -> ExtendedRecordTypes
pub const fn empty() -> ExtendedRecordTypes
Returns an empty set of flags.
Sourcepub const fn all() -> ExtendedRecordTypes
pub const fn all() -> ExtendedRecordTypes
Returns the set containing all flags.
Sourcepub const fn from_bits(bits: i32) -> Option<ExtendedRecordTypes>
pub const fn from_bits(bits: i32) -> Option<ExtendedRecordTypes>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> ExtendedRecordTypes
pub const fn from_bits_truncate(bits: i32) -> ExtendedRecordTypes
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> ExtendedRecordTypes
pub const unsafe fn from_bits_unchecked(bits: i32) -> ExtendedRecordTypes
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
§Safety
The caller of the bitflags! macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked() has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
Sourcepub const fn intersects(&self, other: ExtendedRecordTypes) -> bool
pub const fn intersects(&self, other: ExtendedRecordTypes) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: ExtendedRecordTypes) -> bool
pub const fn contains(&self, other: ExtendedRecordTypes) -> bool
Returns true if all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: ExtendedRecordTypes)
pub fn insert(&mut self, other: ExtendedRecordTypes)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ExtendedRecordTypes)
pub fn remove(&mut self, other: ExtendedRecordTypes)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ExtendedRecordTypes)
pub fn toggle(&mut self, other: ExtendedRecordTypes)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: ExtendedRecordTypes, value: bool)
pub fn set(&mut self, other: ExtendedRecordTypes, value: bool)
Inserts or removes the specified flags depending on the passed value.
Sourcepub const fn intersection(
self,
other: ExtendedRecordTypes,
) -> ExtendedRecordTypes
pub const fn intersection( self, other: ExtendedRecordTypes, ) -> ExtendedRecordTypes
Returns the intersection between the flags in self and
other.
Specifically, the returned set contains only the flags which are
present in both self and other.
This is equivalent to using the & operator (e.g.
ops::BitAnd), as in flags & other.
Sourcepub const fn union(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
pub const fn union(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the union of between the flags in self and other.
Specifically, the returned set contains all flags which are
present in either self or other, including any which are
present in both (see Self::symmetric_difference if that
is undesirable).
This is equivalent to using the | operator (e.g.
ops::BitOr), as in flags | other.
Sourcepub const fn difference(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
pub const fn difference(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the difference between the flags in self and other.
Specifically, the returned set contains all flags present in
self, except for the ones present in other.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other (and this syntax is also supported).
This is equivalent to using the - operator (e.g.
ops::Sub), as in flags - other.
Sourcepub const fn symmetric_difference(
self,
other: ExtendedRecordTypes,
) -> ExtendedRecordTypes
pub const fn symmetric_difference( self, other: ExtendedRecordTypes, ) -> ExtendedRecordTypes
Returns the symmetric difference between the flags
in self and other.
Specifically, the returned set contains the flags present which
are present in self or other, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self and other.
This is equivalent to using the ^ operator (e.g.
ops::BitXor), as in flags ^ other.
Sourcepub const fn complement(self) -> ExtendedRecordTypes
pub const fn complement(self) -> ExtendedRecordTypes
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all() and self (e.g. Self::all() - self)
This is equivalent to using the ! operator (e.g.
ops::Not), as in !flags.
Trait Implementations§
Source§impl Binary for ExtendedRecordTypes
impl Binary for ExtendedRecordTypes
Source§impl BitAnd for ExtendedRecordTypes
impl BitAnd for ExtendedRecordTypes
Source§fn bitand(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
fn bitand(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the intersection between the two sets of flags.
Source§type Output = ExtendedRecordTypes
type Output = ExtendedRecordTypes
& operator.Source§impl BitAndAssign for ExtendedRecordTypes
impl BitAndAssign for ExtendedRecordTypes
Source§fn bitand_assign(&mut self, other: ExtendedRecordTypes)
fn bitand_assign(&mut self, other: ExtendedRecordTypes)
Disables all flags disabled in the set.
Source§impl BitOr for ExtendedRecordTypes
impl BitOr for ExtendedRecordTypes
Source§fn bitor(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
fn bitor(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the union of the two sets of flags.
Source§type Output = ExtendedRecordTypes
type Output = ExtendedRecordTypes
| operator.Source§impl BitOrAssign for ExtendedRecordTypes
impl BitOrAssign for ExtendedRecordTypes
Source§fn bitor_assign(&mut self, other: ExtendedRecordTypes)
fn bitor_assign(&mut self, other: ExtendedRecordTypes)
Adds the set of flags.
Source§impl BitXor for ExtendedRecordTypes
impl BitXor for ExtendedRecordTypes
Source§fn bitxor(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
fn bitxor(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the left flags, but with all the right flags toggled.
Source§type Output = ExtendedRecordTypes
type Output = ExtendedRecordTypes
^ operator.Source§impl BitXorAssign for ExtendedRecordTypes
impl BitXorAssign for ExtendedRecordTypes
Source§fn bitxor_assign(&mut self, other: ExtendedRecordTypes)
fn bitxor_assign(&mut self, other: ExtendedRecordTypes)
Toggles the set of flags.
Source§impl Clone for ExtendedRecordTypes
impl Clone for ExtendedRecordTypes
Source§fn clone(&self) -> ExtendedRecordTypes
fn clone(&self) -> ExtendedRecordTypes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtendedRecordTypes
impl Debug for ExtendedRecordTypes
Source§impl Extend<ExtendedRecordTypes> for ExtendedRecordTypes
impl Extend<ExtendedRecordTypes> for ExtendedRecordTypes
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ExtendedRecordTypes>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ExtendedRecordTypes>,
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<ExtendedRecordTypes> for ExtendedRecordTypes
impl FromIterator<ExtendedRecordTypes> for ExtendedRecordTypes
Source§fn from_iter<T>(iterator: T) -> ExtendedRecordTypeswhere
T: IntoIterator<Item = ExtendedRecordTypes>,
fn from_iter<T>(iterator: T) -> ExtendedRecordTypeswhere
T: IntoIterator<Item = ExtendedRecordTypes>,
Source§impl Hash for ExtendedRecordTypes
impl Hash for ExtendedRecordTypes
Source§impl LowerHex for ExtendedRecordTypes
impl LowerHex for ExtendedRecordTypes
Source§impl Not for ExtendedRecordTypes
impl Not for ExtendedRecordTypes
Source§fn not(self) -> ExtendedRecordTypes
fn not(self) -> ExtendedRecordTypes
Returns the complement of this set of flags.
Source§type Output = ExtendedRecordTypes
type Output = ExtendedRecordTypes
! operator.Source§impl Octal for ExtendedRecordTypes
impl Octal for ExtendedRecordTypes
Source§impl Ord for ExtendedRecordTypes
impl Ord for ExtendedRecordTypes
Source§fn cmp(&self, other: &ExtendedRecordTypes) -> Ordering
fn cmp(&self, other: &ExtendedRecordTypes) -> 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 ExtendedRecordTypes
impl PartialEq for ExtendedRecordTypes
Source§impl PartialOrd for ExtendedRecordTypes
impl PartialOrd for ExtendedRecordTypes
Source§impl Sub for ExtendedRecordTypes
impl Sub for ExtendedRecordTypes
Source§fn sub(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
fn sub(self, other: ExtendedRecordTypes) -> ExtendedRecordTypes
Returns the set difference of the two sets of flags.
Source§type Output = ExtendedRecordTypes
type Output = ExtendedRecordTypes
- operator.Source§impl SubAssign for ExtendedRecordTypes
impl SubAssign for ExtendedRecordTypes
Source§fn sub_assign(&mut self, other: ExtendedRecordTypes)
fn sub_assign(&mut self, other: ExtendedRecordTypes)
Disables all flags enabled in the set.
Source§impl UpperHex for ExtendedRecordTypes
impl UpperHex for ExtendedRecordTypes
impl Copy for ExtendedRecordTypes
impl Eq for ExtendedRecordTypes
impl StructuralPartialEq for ExtendedRecordTypes
Auto Trait Implementations§
impl Freeze for ExtendedRecordTypes
impl RefUnwindSafe for ExtendedRecordTypes
impl Send for ExtendedRecordTypes
impl Sync for ExtendedRecordTypes
impl Unpin for ExtendedRecordTypes
impl UnwindSafe for ExtendedRecordTypes
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.