Struct lldb::TypeOptions
source · [−]#[repr(C)]pub struct TypeOptions { /* private fields */ }
Implementations
sourceimpl TypeOptions
impl TypeOptions
pub const NONE: TypeOptions = Self{ bits: 0,}
pub const CASCADE: TypeOptions = Self{ bits: 1,}
pub const SKIP_POINTERS: TypeOptions = Self{ bits: 2,}
pub const SKIP_REFERENCES: TypeOptions = Self{ bits: 4,}
pub const HIDE_CHILDREN: TypeOptions = Self{ bits: 8,}
pub const HIDE_VALUE: TypeOptions = Self{ bits: 16,}
pub const SHOW_ONE_LINER: TypeOptions = Self{ bits: 32,}
pub const HIDE_NAMES: TypeOptions = Self{ bits: 64,}
pub const NONCACHEABLE: TypeOptions = Self{ bits: 128,}
pub const HIDE_EMPTY_AGGREGATES: TypeOptions = Self{ bits: 256,}
pub const FRONT_END_WANTS_DEREFERENCE: TypeOptions = Self{ bits: 512,}
sourcepub const fn empty() -> TypeOptions
pub const fn empty() -> TypeOptions
Returns an empty set of flags.
sourcepub const fn all() -> TypeOptions
pub const fn all() -> TypeOptions
Returns the set containing all flags.
sourcepub const fn from_bits(bits: u32) -> Option<TypeOptions>
pub const fn from_bits(bits: u32) -> Option<TypeOptions>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> TypeOptions
pub const fn from_bits_truncate(bits: u32) -> TypeOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> TypeOptions
pub const unsafe fn from_bits_unchecked(bits: u32) -> TypeOptions
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: TypeOptions) -> bool
pub const fn intersects(&self, other: TypeOptions) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: TypeOptions) -> bool
pub const fn contains(&self, other: TypeOptions) -> bool
Returns true
if all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: TypeOptions)
pub fn insert(&mut self, other: TypeOptions)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: TypeOptions)
pub fn remove(&mut self, other: TypeOptions)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: TypeOptions)
pub fn toggle(&mut self, other: TypeOptions)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: TypeOptions, value: bool)
pub fn set(&mut self, other: TypeOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: TypeOptions) -> TypeOptions
pub const fn intersection(self, other: TypeOptions) -> TypeOptions
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: TypeOptions) -> TypeOptions
pub const fn union(self, other: TypeOptions) -> TypeOptions
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: TypeOptions) -> TypeOptions
pub const fn difference(self, other: TypeOptions) -> TypeOptions
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: TypeOptions) -> TypeOptions
pub const fn symmetric_difference(self, other: TypeOptions) -> TypeOptions
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) -> TypeOptions
pub const fn complement(self) -> TypeOptions
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
sourceimpl Binary for TypeOptions
impl Binary for TypeOptions
sourceimpl BitAnd<TypeOptions> for TypeOptions
impl BitAnd<TypeOptions> for TypeOptions
sourcefn bitand(self, other: TypeOptions) -> TypeOptions
fn bitand(self, other: TypeOptions) -> TypeOptions
Returns the intersection between the two sets of flags.
type Output = TypeOptions
type Output = TypeOptions
&
operator.sourceimpl BitAndAssign<TypeOptions> for TypeOptions
impl BitAndAssign<TypeOptions> for TypeOptions
sourcefn bitand_assign(&mut self, other: TypeOptions)
fn bitand_assign(&mut self, other: TypeOptions)
Disables all flags disabled in the set.
sourceimpl BitOr<TypeOptions> for TypeOptions
impl BitOr<TypeOptions> for TypeOptions
sourcefn bitor(self, other: TypeOptions) -> TypeOptions
fn bitor(self, other: TypeOptions) -> TypeOptions
Returns the union of the two sets of flags.
type Output = TypeOptions
type Output = TypeOptions
|
operator.sourceimpl BitOrAssign<TypeOptions> for TypeOptions
impl BitOrAssign<TypeOptions> for TypeOptions
sourcefn bitor_assign(&mut self, other: TypeOptions)
fn bitor_assign(&mut self, other: TypeOptions)
Adds the set of flags.
sourceimpl BitXor<TypeOptions> for TypeOptions
impl BitXor<TypeOptions> for TypeOptions
sourcefn bitxor(self, other: TypeOptions) -> TypeOptions
fn bitxor(self, other: TypeOptions) -> TypeOptions
Returns the left flags, but with all the right flags toggled.
type Output = TypeOptions
type Output = TypeOptions
^
operator.sourceimpl BitXorAssign<TypeOptions> for TypeOptions
impl BitXorAssign<TypeOptions> for TypeOptions
sourcefn bitxor_assign(&mut self, other: TypeOptions)
fn bitxor_assign(&mut self, other: TypeOptions)
Toggles the set of flags.
sourceimpl Clone for TypeOptions
impl Clone for TypeOptions
sourcefn clone(&self) -> TypeOptions
fn clone(&self) -> TypeOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for TypeOptions
impl Debug for TypeOptions
sourceimpl Extend<TypeOptions> for TypeOptions
impl Extend<TypeOptions> for TypeOptions
sourcefn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = TypeOptions>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = TypeOptions>,
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)sourceimpl FromIterator<TypeOptions> for TypeOptions
impl FromIterator<TypeOptions> for TypeOptions
sourcefn from_iter<T>(iterator: T) -> TypeOptionswhere
T: IntoIterator<Item = TypeOptions>,
fn from_iter<T>(iterator: T) -> TypeOptionswhere
T: IntoIterator<Item = TypeOptions>,
sourceimpl Hash for TypeOptions
impl Hash for TypeOptions
sourceimpl LowerHex for TypeOptions
impl LowerHex for TypeOptions
sourceimpl Not for TypeOptions
impl Not for TypeOptions
sourcefn not(self) -> TypeOptions
fn not(self) -> TypeOptions
Returns the complement of this set of flags.
type Output = TypeOptions
type Output = TypeOptions
!
operator.sourceimpl Octal for TypeOptions
impl Octal for TypeOptions
sourceimpl Ord for TypeOptions
impl Ord for TypeOptions
sourcefn cmp(&self, other: &TypeOptions) -> Ordering
fn cmp(&self, other: &TypeOptions) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<TypeOptions> for TypeOptions
impl PartialEq<TypeOptions> for TypeOptions
sourcefn eq(&self, other: &TypeOptions) -> bool
fn eq(&self, other: &TypeOptions) -> bool
sourceimpl PartialOrd<TypeOptions> for TypeOptions
impl PartialOrd<TypeOptions> for TypeOptions
sourcefn partial_cmp(&self, other: &TypeOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &TypeOptions) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Sub<TypeOptions> for TypeOptions
impl Sub<TypeOptions> for TypeOptions
sourcefn sub(self, other: TypeOptions) -> TypeOptions
fn sub(self, other: TypeOptions) -> TypeOptions
Returns the set difference of the two sets of flags.
type Output = TypeOptions
type Output = TypeOptions
-
operator.sourceimpl SubAssign<TypeOptions> for TypeOptions
impl SubAssign<TypeOptions> for TypeOptions
sourcefn sub_assign(&mut self, other: TypeOptions)
fn sub_assign(&mut self, other: TypeOptions)
Disables all flags enabled in the set.