Struct hassle_rs::intellisense::DxcCursorKind
source · 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.
§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§fn eq(&self, other: &DxcCursorKind) -> bool
fn eq(&self, other: &DxcCursorKind) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DxcCursorKind
impl PartialOrd for DxcCursorKind
source§fn partial_cmp(&self, other: &DxcCursorKind) -> Option<Ordering>
fn partial_cmp(&self, other: &DxcCursorKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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.
§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.