Enum clang_ast::Kind [−][src]
#[non_exhaustive]
pub enum Kind {
Show variants
AbiTagAttr,
AccessSpecDecl,
AliasAttr,
AlignedAttr,
AllocSizeAttr,
AlwaysInlineAttr,
ArrayInitIndexExpr,
ArrayInitLoopExpr,
ArraySubscriptExpr,
AsmLabelAttr,
AtomicExpr,
BinaryOperator,
BreakStmt,
BuiltinTemplateDecl,
BuiltinType,
CStyleCastExpr,
CXX11NoReturnAttr,
CXXBindTemporaryExpr,
CXXBoolLiteralExpr,
CXXCatchStmt,
CXXConstCastExpr,
CXXConstructExpr,
CXXConstructorDecl,
CXXConversionDecl,
CXXCtorInitializer,
CXXDefaultArgExpr,
CXXDefaultInitExpr,
CXXDeleteExpr,
CXXDependentScopeMemberExpr,
CXXDestructorDecl,
CXXDynamicCastExpr,
CXXForRangeStmt,
CXXFunctionalCastExpr,
CXXInheritedCtorInitExpr,
CXXMemberCallExpr,
CXXMethodDecl,
CXXNewExpr,
CXXNoexceptExpr,
CXXNullPtrLiteralExpr,
CXXOperatorCallExpr,
CXXPseudoDestructorExpr,
CXXRecordDecl,
CXXReinterpretCastExpr,
CXXScalarValueInitExpr,
CXXStaticCastExpr,
CXXTemporaryObjectExpr,
CXXThisExpr,
CXXThrowExpr,
CXXTryStmt,
CXXTypeidExpr,
CXXUnresolvedConstructExpr,
CallExpr,
CallbackAttr,
CaseStmt,
CharacterLiteral,
ClassTemplateDecl,
ClassTemplatePartialSpecializationDecl,
ClassTemplateSpecializationDecl,
ComplexType,
CompoundAssignOperator,
CompoundStmt,
ConditionalOperator,
ConstAttr,
ConstantArrayType,
ConstantExpr,
ConstructorUsingShadowDecl,
ContinueStmt,
DeclRefExpr,
DeclStmt,
DecltypeType,
DefaultStmt,
DependentNameType,
DependentScopeDeclRefExpr,
DependentSizedArrayType,
DependentTemplateSpecializationType,
DeprecatedAttr,
DoStmt,
ElaboratedType,
EmptyDecl,
EnumConstantDecl,
EnumDecl,
EnumType,
ExprWithCleanups,
FieldDecl,
FinalAttr,
FloatingLiteral,
ForStmt,
FormatArgAttr,
FormatAttr,
FriendDecl,
FunctionDecl,
FunctionProtoType,
FunctionTemplateDecl,
GNUNullExpr,
IfStmt,
ImplicitCastExpr,
ImplicitValueInitExpr,
IncompleteArrayType,
IndirectFieldDecl,
InitListExpr,
InjectedClassNameType,
IntegerLiteral,
LValueReferenceType,
LambdaExpr,
LinkageSpecDecl,
MaterializeTemporaryExpr,
MayAliasAttr,
MemberExpr,
MemberPointerType,
ModeAttr,
NamespaceDecl,
NoThrowAttr,
NonNullAttr,
NonTypeTemplateParmDecl,
NullStmt,
OpaqueValueExpr,
OverrideAttr,
OwnerAttr,
PackExpansionExpr,
PackExpansionType,
ParenExpr,
ParenListExpr,
ParenType,
ParmVarDecl,
PointerAttr,
PointerType,
PredefinedExpr,
PureAttr,
QualType,
RValueReferenceType,
RecordType,
RestrictAttr,
ReturnStmt,
ReturnsNonNullAttr,
ReturnsTwiceAttr,
SizeOfPackExpr,
StaticAssertDecl,
StringLiteral,
SubstNonTypeTemplateParmExpr,
SubstTemplateTypeParmType,
SwitchStmt,
TemplateArgument,
TemplateSpecializationType,
TemplateTemplateParmDecl,
TemplateTypeParmDecl,
TemplateTypeParmType,
TranslationUnitDecl,
TypeAliasDecl,
TypeAliasTemplateDecl,
TypeOfExprType,
TypeTraitExpr,
TypedefDecl,
TypedefType,
UnaryExprOrTypeTraitExpr,
UnaryOperator,
UnaryTransformType,
UnresolvedLookupExpr,
UnresolvedMemberExpr,
UnresolvedUsingValueDecl,
UnusedAttr,
UsingDecl,
UsingDirectiveDecl,
UsingShadowDecl,
VarDecl,
VarTemplateDecl,
VisibilityAttr,
WarnUnusedResultAttr,
WeakRefAttr,
WhileStmt,
null,
}Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations
impl Kind[src]
Trait Implementations
impl Clone for Kind[src]
impl Copy for Kind[src]
impl Debug for Kind[src]
impl Default for Kind[src]
impl<'de> Deserialize<'de> for Kind[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Display for Kind[src]
impl Eq for Kind[src]
impl FromStr for Kind[src]
type Err = ParseKindError
The associated error which can be returned from parsing.
fn from_str(kind: &str) -> Result<Self, Self::Err>[src]
impl Hash for Kind[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for Kind[src]
fn cmp(&self, other: &Kind) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl PartialEq<Kind> for Kind[src]
impl PartialOrd<Kind> for Kind[src]
fn partial_cmp(&self, other: &Kind) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for Kind[src]
impl StructuralPartialEq for Kind[src]
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,