pub struct DxcCursorKind(/* private fields */);
Implementations§
Source§impl DxcCursorKind
impl DxcCursorKind
pub const UNEXPOSED_DECL: Self
pub const STRUCT_DECL: Self
pub const UNION_DECL: Self
pub const CLASS_DECL: Self
pub const ENUM_DECL: Self
pub const FIELD_DECL: Self
pub const ENUM_CONSTANT_DECL: Self
pub const FUNCTION_DECL: Self
pub const VAR_DECL: Self
pub const PARM_DECL: Self
pub const OBJ_C_INTERFACE_DECL: Self
pub const OBJ_C_CATEGORY_DECL: Self
pub const OBJ_C_PROTOCOL_DECL: Self
pub const OBJ_C_PROPERTY_DECL: Self
pub const OBJ_C_IVAR_DECL: Self
pub const OBJ_C_INSTANCE_METHOD_DECL: Self
pub const OBJ_C_CLASS_METHOD_DECL: Self
pub const OBJ_C_IMPLEMENTATION_DECL: Self
pub const OBJ_C_CATEGORY_IMPL_DECL: Self
pub const TYPEDEF_DECL: Self
pub const CXX_METHOD: Self
pub const NAMESPACE: Self
pub const LINKAGE_SPEC: Self
pub const CONSTRUCTOR: Self
pub const DESTRUCTOR: Self
pub const CONVERSION_FUNCTION: Self
pub const TEMPLATE_TYPE_PARAMETER: Self
pub const NON_TYPE_TEMPLATE_PARAMETER: Self
pub const TEMPLATE_TEMPLATE_PARAMETER: Self
pub const FUNCTION_TEMPLATE: Self
pub const CLASS_TEMPLATE: Self
pub const CLASS_TEMPLATE_PARTIAL_SPECIALIZATION: Self
pub const NAMESPACE_ALIAS: Self
pub const USING_DIRECTIVE: Self
pub const USING_DECLARATION: Self
pub const TYPE_ALIAS_DECL: Self
pub const OBJ_C_SYNTHESIZE_DECL: Self
pub const OBJ_C_DYNAMIC_DECL: Self
pub const CXX_ACCESS_SPECIFIER: Self
pub const FIRST_DECL: Self
pub const LAST_DECL: Self
pub const FIRST_REF: Self
pub const OBJ_C_SUPER_CLASS_REF: Self
pub const OBJ_C_PROTOCOL_REF: Self
pub const OBJ_C_CLASS_REF: Self
pub const TYPE_REF: Self
pub const CXX_BASE_SPECIFIER: Self
pub const TEMPLATE_REF: Self
pub const NAMESPACE_REF: Self
pub const MEMBER_REF: Self
pub const LABEL_REF: Self
pub const OVERLOADED_DECL_REF: Self
pub const VARIABLE_REF: Self
pub const LAST_REF: Self
pub const FIRST_INVALID: Self
pub const INVALID_FILE: Self
pub const NO_DECL_FOUND: Self
pub const NOT_IMPLEMENTED: Self
pub const INVALID_CODE: Self
pub const LAST_INVALID: Self
pub const FIRST_EXPR: Self
pub const UNEXPOSED_EXPR: Self
pub const DECL_REF_EXPR: Self
pub const MEMBER_REF_EXPR: Self
pub const CALL_EXPR: Self
pub const OBJ_C_MESSAGE_EXPR: Self
pub const BLOCK_EXPR: Self
pub const INTEGER_LITERAL: Self
pub const FLOATING_LITERAL: Self
pub const IMAGINARY_LITERAL: Self
pub const STRING_LITERAL: Self
pub const CHARACTER_LITERAL: Self
pub const PAREN_EXPR: Self
pub const UNARY_OPERATOR: Self
pub const ARRAY_SUBSCRIPT_EXPR: Self
pub const BINARY_OPERATOR: Self
pub const COMPOUND_ASSIGN_OPERATOR: Self
pub const CONDITIONAL_OPERATOR: Self
pub const C_STYLE_CAST_EXPR: Self
pub const COMPOUND_LITERAL_EXPR: Self
pub const INIT_LIST_EXPR: Self
pub const ADDR_LABEL_EXPR: Self
pub const STMT_EXPR: Self
pub const GENERIC_SELECTION_EXPR: Self
pub const GNU_NULL_EXPR: Self
pub const CXX_STATIC_CAST_EXPR: Self
pub const CXX_DYNAMIC_CAST_EXPR: Self
pub const CXX_REINTERPRET_CAST_EXPR: Self
pub const CXX_CONST_CAST_EXPR: Self
pub const CXX_FUNCTIONAL_CAST_EXPR: Self
pub const CXX_TYPEID_EXPR: Self
pub const CXX_BOOL_LITERAL_EXPR: Self
pub const CXX_NULL_PTR_LITERAL_EXPR: Self
pub const CXX_THIS_EXPR: Self
pub const CXX_THROW_EXPR: Self
pub const CXX_NEW_EXPR: Self
pub const CXX_DELETE_EXPR: Self
pub const UNARY_EXPR: Self
pub const OBJ_C_STRING_LITERAL: Self
pub const OBJ_C_ENCODE_EXPR: Self
pub const OBJ_C_SELECTOR_EXPR: Self
pub const OBJ_C_PROTOCOL_EXPR: Self
pub const OBJ_C_BRIDGED_CAST_EXPR: Self
pub const PACK_EXPANSION_EXPR: Self
pub const SIZE_OF_PACK_EXPR: Self
pub const LAMBDA_EXPR: Self
pub const OBJ_C_BOOL_LITERAL_EXPR: Self
pub const OBJ_C_SELF_EXPR: Self
pub const LAST_EXPR: Self
pub const FIRST_STMT: Self
pub const UNEXPOSED_STMT: Self
pub const LABEL_STMT: Self
pub const COMPOUND_STMT: Self
pub const CASE_STMT: Self
pub const DEFAULT_STMT: Self
pub const IF_STMT: Self
pub const SWITCH_STMT: Self
pub const WHILE_STMT: Self
pub const DO_STMT: Self
pub const FOR_STMT: Self
pub const GOTO_STMT: Self
pub const INDIRECT_GOTO_STMT: Self
pub const CONTINUE_STMT: Self
pub const BREAK_STMT: Self
pub const RETURN_STMT: Self
pub const GCC_ASM_STMT: Self
pub const ASM_STMT: Self
pub const OBJ_C_AT_TRY_STMT: Self
pub const OBJ_C_AT_CATCH_STMT: Self
pub const OBJ_C_AT_FINALLY_STMT: Self
pub const OBJ_C_AT_THROW_STMT: Self
pub const OBJ_C_AT_SYNCHRONIZED_STMT: Self
pub const OBJ_C_AUTORELEASE_POOL_STMT: Self
pub const OBJ_C_FOR_COLLECTION_STMT: Self
pub const CXX_CATCH_STMT: Self
pub const CXX_TRY_STMT: Self
pub const CXX_FOR_RANGE_STMT: Self
pub const SEH_TRY_STMT: Self
pub const SEH_EXCEPT_STMT: Self
pub const SEH_FINALLY_STMT: Self
pub const MS_ASM_STMT: Self
pub const NULL_STMT: Self
pub const DECL_STMT: Self
pub const OMP_PARALLEL_DIRECTIVE: Self
pub const OMP_SIMD_DIRECTIVE: Self
pub const OMP_FOR_DIRECTIVE: Self
pub const OMP_SECTIONS_DIRECTIVE: Self
pub const OMP_SECTION_DIRECTIVE: Self
pub const OMP_SINGLE_DIRECTIVE: Self
pub const OMP_PARALLEL_FOR_DIRECTIVE: Self
pub const OMP_PARALLEL_SECTIONS_DIRECTIVE: Self
pub const OMP_TASK_DIRECTIVE: Self
pub const OMP_MASTER_DIRECTIVE: Self
pub const OMP_CRITICAL_DIRECTIVE: Self
pub const OMP_TASKYIELD_DIRECTIVE: Self
pub const OMP_BARRIER_DIRECTIVE: Self
pub const OMP_TASKWAIT_DIRECTIVE: Self
pub const OMP_FLUSH_DIRECTIVE: Self
pub const SEH_LEAVE_STMT: Self
pub const OMP_ORDERED_DIRECTIVE: Self
pub const OMP_ATOMIC_DIRECTIVE: Self
pub const OMP_FOR_SIMD_DIRECTIVE: Self
pub const OMP_PARALLEL_FOR_SIMD_DIRECTIVE: Self
pub const OMP_TARGET_DIRECTIVE: Self
pub const OMP_TEAMS_DIRECTIVE: Self
pub const OMP_TASKGROUP_DIRECTIVE: Self
pub const OMP_CANCELLATION_POINT_DIRECTIVE: Self
pub const OMP_CANCEL_DIRECTIVE: Self
pub const LAST_STMT: Self
pub const TRANSLATION_UNIT: Self
pub const FIRST_ATTR: Self
pub const UNEXPOSED_ATTR: Self
pub const IB_ACTION_ATTR: Self
pub const IB_OUTLET_ATTR: Self
pub const IB_OUTLET_COLLECTION_ATTR: Self
pub const CXX_FINAL_ATTR: Self
pub const CXX_OVERRIDE_ATTR: Self
pub const ANNOTATE_ATTR: Self
pub const ASM_LABEL_ATTR: Self
pub const PACKED_ATTR: Self
pub const PURE_ATTR: Self
pub const CONST_ATTR: Self
pub const NO_DUPLICATE_ATTR: Self
pub const CUDA_CONSTANT_ATTR: Self
pub const CUDA_DEVICE_ATTR: Self
pub const CUDA_GLOBAL_ATTR: Self
pub const CUDA_HOST_ATTR: Self
pub const CUDA_SHARED_ATTR: Self
pub const LAST_ATTR: Self
pub const PREPROCESSING_DIRECTIVE: Self
pub const MACRO_DEFINITION: Self
pub const MACRO_EXPANSION: Self
pub const MACRO_INSTANTIATION: Self
pub const INCLUSION_DIRECTIVE: Self
pub const FIRST_PREPROCESSING: Self
pub const LAST_PREPROCESSING: Self
pub const MODULE_IMPORT_DECL: Self
pub const FIRST_EXTRA_DECL: Self
pub const LAST_EXTRA_DECL: Self
Source§impl DxcCursorKind
impl DxcCursorKind
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits(bits: u32) -> Option<Self>
Convert from a bits value.
This method will return None
if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> Self
pub const fn from_bits_retain(bits: u32) -> Self
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None
if name
is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
Sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
Sourcepub fn remove(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
remove
won’t truncate other
, but the !
operator will.
Sourcepub fn toggle(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
Sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Call insert
when value
is true
or remove
when value
is false
.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
The bitwise and (&
) of the bits in two flags values.
Sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
The bitwise or (|
) of the bits in two flags values.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^
) of the bits in two flags values.
Sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
The bitwise negation (!
) of the bits in a flags value, truncating the result.
Source§impl DxcCursorKind
impl DxcCursorKind
Sourcepub const fn iter(&self) -> Iter<DxcCursorKind>
pub const fn iter(&self) -> Iter<DxcCursorKind>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<DxcCursorKind>
pub const fn iter_names(&self) -> IterNames<DxcCursorKind>
Yield a set of contained named flags values.
This method is like iter
, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for DxcCursorKind
impl Binary for DxcCursorKind
Source§impl BitAnd for DxcCursorKind
impl BitAnd for DxcCursorKind
Source§impl BitAndAssign for DxcCursorKind
impl BitAndAssign for DxcCursorKind
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&
) of the bits in two flags values.
Source§impl BitOr for DxcCursorKind
impl BitOr for DxcCursorKind
Source§fn bitor(self, other: DxcCursorKind) -> Self
fn bitor(self, other: DxcCursorKind) -> Self
The bitwise or (|
) of the bits in two flags values.
Source§type Output = DxcCursorKind
type Output = DxcCursorKind
|
operator.Source§impl BitOrAssign for DxcCursorKind
impl BitOrAssign for DxcCursorKind
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|
) of the bits in two flags values.
Source§impl BitXor for DxcCursorKind
impl BitXor for DxcCursorKind
Source§impl BitXorAssign for DxcCursorKind
impl BitXorAssign for DxcCursorKind
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^
) of the bits in two flags values.
Source§impl Clone for DxcCursorKind
impl Clone for DxcCursorKind
Source§fn clone(&self) -> DxcCursorKind
fn clone(&self) -> DxcCursorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DxcCursorKind
impl Debug for DxcCursorKind
Source§impl Extend<DxcCursorKind> for DxcCursorKind
impl Extend<DxcCursorKind> for DxcCursorKind
Source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|
) of the bits in each flags value.
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 Flags for DxcCursorKind
impl Flags for DxcCursorKind
Source§const FLAGS: &'static [Flag<DxcCursorKind>]
const FLAGS: &'static [Flag<DxcCursorKind>]
Source§fn from_bits_retain(bits: u32) -> DxcCursorKind
fn from_bits_retain(bits: u32) -> DxcCursorKind
Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self>
fn iter_names(&self) -> IterNames<Self>
Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|
) of the bits in two flags values.Source§fn remove(&mut self, other: Self)where
Self: Sized,
fn remove(&mut self, other: Self)where
Self: Sized,
&!
). Read moreSource§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^
) of the bits in two flags values.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&
) of the bits in two flags values.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
&!
). Read moreSource§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^
) of the bits in two flags values.Source§fn complement(self) -> Self
fn complement(self) -> Self
!
) of the bits in a flags value, truncating the result.Source§impl FromIterator<DxcCursorKind> for DxcCursorKind
impl FromIterator<DxcCursorKind> for DxcCursorKind
Source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|
) of the bits in each flags value.
Source§impl Hash for DxcCursorKind
impl Hash for DxcCursorKind
Source§impl IntoIterator for DxcCursorKind
impl IntoIterator for DxcCursorKind
Source§impl LowerHex for DxcCursorKind
impl LowerHex for DxcCursorKind
Source§impl Not for DxcCursorKind
impl Not for DxcCursorKind
Source§impl Octal for DxcCursorKind
impl Octal for DxcCursorKind
Source§impl Ord for DxcCursorKind
impl Ord for DxcCursorKind
Source§fn cmp(&self, other: &DxcCursorKind) -> Ordering
fn cmp(&self, other: &DxcCursorKind) -> 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 DxcCursorKind
impl PartialEq for DxcCursorKind
Source§impl PartialOrd for DxcCursorKind
impl PartialOrd for DxcCursorKind
Source§impl PublicFlags for DxcCursorKind
impl PublicFlags for DxcCursorKind
Source§impl Sub for DxcCursorKind
impl Sub for DxcCursorKind
Source§fn sub(self, other: Self) -> Self
fn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.
Source§type Output = DxcCursorKind
type Output = DxcCursorKind
-
operator.Source§impl SubAssign for DxcCursorKind
impl SubAssign for DxcCursorKind
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!
).
This method is not equivalent to self & !other
when other
has unknown bits set.
difference
won’t truncate other
, but the !
operator will.