#[non_exhaustive]pub enum TagKind {
Show 123 variants
Abstract,
Access,
Author,
Category,
Copyright,
Deprecated,
Example,
Final,
FileSource,
Global,
Ignore,
Internal,
License,
Link,
Method,
Mixin,
Name,
Package,
Param,
Property,
PropertyRead,
PropertyWrite,
SealProperties,
NoSealProperties,
SealMethods,
NoSealMethods,
ReadOnly,
NoNamedArguments,
Template,
PsalmTemplate,
Api,
PsalmApi,
PsalmInheritors,
Return,
See,
Since,
Static,
StaticVar,
SubPackage,
Todo,
Tutorial,
Uses,
Var,
Throws,
Version,
ParamLaterInvokedCallable,
ParamImmediatelyInvokedCallable,
ParamClosureThis,
TemplateCovariant,
TemplateContravariant,
Extends,
Implements,
Use,
NotDeprecated,
PhpstanImpure,
PhpstanPure,
Pure,
Immutable,
InheritDoc,
ParamOut,
PsalmConsistentConstructor,
PsalmConsistentTemplates,
PsalmParamOut,
PsalmVar,
PsalmParam,
PsalmReturn,
PsalmProperty,
PsalmPropertyRead,
PsalmPropertyWrite,
PsalmMethod,
PsalmIgnoreVar,
PsalmSuppress,
PsalmAssert,
PsalmAssertIfTrue,
PsalmAssertIfFalse,
PsalmIfThisIs,
PsalmThisOut,
PsalmIgnoreNullableReturn,
PsalmIgnoreFalsableReturn,
PsalmSealProperties,
PsalmNoSealProperties,
PsalmSealMethods,
PsalmNoSealMethods,
PsalmInternal,
PsalmReadOnly,
PsalmMutationFree,
PsalmExternalMutationFree,
PsalmImmutable,
PsalmPure,
PsalmAllowPrivateMutation,
PsalmReadOnlyAllowPrivateMutation,
PsalmTrace,
PsalmCheckType,
PsalmCheckTypeExact,
PsalmTaintSource,
PsalmTaintSink,
PsalmTaintEscape,
PsalmTaintUnescape,
PsalmTaintSpecialize,
PsalmFlow,
PsalmType,
PsalmImportType,
PsalmRequireExtends,
PsalmRequireImplements,
PsalmIgnoreVariableProperty,
PsalmIgnoreVariableMethod,
PsalmYield,
PhpstanAssert,
PhpstanAssertIfTrue,
PhpstanAssertIfFalse,
PhpstanSelfOut,
PhpstanThisOut,
PhpstanRequireExtends,
PhpstanRequireImplements,
PhpstanTemplate,
PhpstanTemplateCovariant,
PhpstanTemplateContravariant,
PhpstanParam,
PhpstanReturn,
PhpstanVar,
PhpstanReadOnly,
PhpstanImmutable,
Other,
}Variants (Non-exhaustive)§
This enum is marked as 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.
Abstract
Access
Author
Category
Copyright
Deprecated
Example
Final
FileSource
Global
Ignore
Internal
License
Link
Method
Mixin
Name
Package
Param
Property
PropertyRead
PropertyWrite
SealProperties
NoSealProperties
SealMethods
NoSealMethods
ReadOnly
NoNamedArguments
Template
PsalmTemplate
Api
PsalmApi
PsalmInheritors
Return
See
Since
Static
StaticVar
SubPackage
Todo
Tutorial
Uses
Var
Throws
Version
ParamLaterInvokedCallable
ParamImmediatelyInvokedCallable
ParamClosureThis
TemplateCovariant
TemplateContravariant
Extends
Implements
Use
NotDeprecated
PhpstanImpure
PhpstanPure
Pure
Immutable
InheritDoc
ParamOut
PsalmConsistentConstructor
PsalmConsistentTemplates
PsalmParamOut
PsalmVar
PsalmParam
PsalmReturn
PsalmProperty
PsalmPropertyRead
PsalmPropertyWrite
PsalmMethod
PsalmIgnoreVar
PsalmSuppress
PsalmAssert
PsalmAssertIfTrue
PsalmAssertIfFalse
PsalmIfThisIs
PsalmThisOut
PsalmIgnoreNullableReturn
PsalmIgnoreFalsableReturn
PsalmSealProperties
PsalmNoSealProperties
PsalmSealMethods
PsalmNoSealMethods
PsalmInternal
PsalmReadOnly
PsalmMutationFree
PsalmExternalMutationFree
PsalmImmutable
PsalmPure
PsalmAllowPrivateMutation
PsalmReadOnlyAllowPrivateMutation
PsalmTrace
PsalmCheckType
PsalmCheckTypeExact
PsalmTaintSource
PsalmTaintSink
PsalmTaintEscape
PsalmTaintUnescape
PsalmTaintSpecialize
PsalmFlow
PsalmType
PsalmImportType
PsalmRequireExtends
PsalmRequireImplements
PsalmIgnoreVariableProperty
PsalmIgnoreVariableMethod
PsalmYield
PhpstanAssert
PhpstanAssertIfTrue
PhpstanAssertIfFalse
PhpstanSelfOut
PhpstanThisOut
PhpstanRequireExtends
PhpstanRequireImplements
PhpstanTemplate
PhpstanTemplateCovariant
PhpstanTemplateContravariant
PhpstanParam
PhpstanReturn
PhpstanVar
PhpstanReadOnly
PhpstanImmutable
Other
Implementations§
Source§impl TagKind
impl TagKind
Sourcepub fn get_vendor(&self) -> Option<TagVendor>
pub fn get_vendor(&self) -> Option<TagVendor>
Returns the vendor of the tag, if it has one.
If the tag does not have a vendor, None is returned.
Sourcepub fn get_non_vendored_variant(&self) -> Option<TagKind>
pub fn get_non_vendored_variant(&self) -> Option<TagKind>
Returns the non-vendored variant of the tag, if it exists.
Note that not all vendored tags have a non-vendored variant.
If the tag is not vendored, or if it does not have a non-vendored variant,
None is returned.
pub fn is_repeatable(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagKind
impl<'de> Deserialize<'de> for TagKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for TagKind
impl Ord for TagKind
Source§impl PartialOrd for TagKind
impl PartialOrd for TagKind
impl Copy for TagKind
impl Eq for TagKind
impl StructuralPartialEq for TagKind
Auto Trait Implementations§
impl Freeze for TagKind
impl RefUnwindSafe for TagKind
impl Send for TagKind
impl Sync for TagKind
impl Unpin for TagKind
impl UnwindSafe for TagKind
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
Mutably borrows from an owned value. Read more