pub enum DiagnosticCode {
Show 53 variants
SyntaxError,
DocSyntaxError,
TypeNotFound,
MissingReturn,
ParamTypeMismatch,
MissingParameter,
RedundantParameter,
UnreachableCode,
Unused,
UndefinedGlobal,
Deprecated,
AccessInvisible,
DiscardReturns,
UndefinedField,
LocalConstReassign,
IterVariableReassign,
DuplicateType,
RedefinedLocal,
RedefinedLabel,
CodeStyleCheck,
NeedCheckNil,
AwaitInSync,
AnnotationUsageError,
ReturnTypeMismatch,
MissingReturnValue,
RedundantReturnValue,
UndefinedDocParam,
DuplicateDocField,
UnknownDocTag,
MissingFields,
InjectField,
CircleDocClass,
IncompleteSignatureDoc,
MissingGlobalDoc,
AssignTypeMismatch,
DuplicateRequire,
NonLiteralExpressionsInAssert,
UnbalancedAssignments,
UnnecessaryAssert,
UnnecessaryIf,
DuplicateSetField,
DuplicateIndex,
GenericConstraintMismatch,
CastTypeMismatch,
RequireModuleNotVisible,
EnumValueMismatch,
PreferredLocalAlias,
ReadOnly,
GlobalInNonModule,
AttributeParamTypeMismatch,
AttributeMissingParameter,
AttributeRedundantParameter,
None,
}Variants§
SyntaxError
Syntax error
DocSyntaxError
Doc syntax error
TypeNotFound
Type not found
MissingReturn
Missing return statement
ParamTypeMismatch
Param Type not match
MissingParameter
Missing parameter
RedundantParameter
Redundant parameter
UnreachableCode
Unreachable code
Unused
Unused
UndefinedGlobal
Undefined global
Deprecated
Deprecated
AccessInvisible
Access invisible
DiscardReturns
Discard return value
UndefinedField
Undefined field
LocalConstReassign
Local const reassign
IterVariableReassign
Iter variable reassign
DuplicateType
Duplicate type
RedefinedLocal
Redefined local
RedefinedLabel
Redefined label
CodeStyleCheck
Code style check
NeedCheckNil
Need check nil
AwaitInSync
Await in sync
AnnotationUsageError
Doc tag usage error
ReturnTypeMismatch
Return type mismatch
MissingReturnValue
Missing return value
RedundantReturnValue
Redundant return value
UndefinedDocParam
Undefined Doc Param
DuplicateDocField
Duplicate doc field
UnknownDocTag
Unknown doc annotation
MissingFields
Missing fields
InjectField
Inject Field
CircleDocClass
Circle Doc Class
IncompleteSignatureDoc
Incomplete signature doc
MissingGlobalDoc
Missing global doc
AssignTypeMismatch
Assign type mismatch
DuplicateRequire
Duplicate require
NonLiteralExpressionsInAssert
non-literal-expressions-in-assert
UnbalancedAssignments
Unbalanced assignments
UnnecessaryAssert
unnecessary-assert
UnnecessaryIf
unnecessary-if
DuplicateSetField
duplicate-set-field
DuplicateIndex
duplicate-index
GenericConstraintMismatch
generic-constraint-mismatch
CastTypeMismatch
cast-type-mismatch
RequireModuleNotVisible
require-module-not-visible
EnumValueMismatch
enum-value-mismatch
PreferredLocalAlias
preferred-local-alias
ReadOnly
readonly
GlobalInNonModule
Global variable defined in non-module scope
AttributeParamTypeMismatch
attribute-param-type-mismatch
AttributeMissingParameter
attribute-missing-parameter
AttributeRedundantParameter
attribute-redundant-parameter
None
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
Source§fn clone(&self) -> DiagnosticCode
fn clone(&self) -> DiagnosticCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DiagnosticCode
impl Debug for DiagnosticCode
Source§impl<'de> Deserialize<'de> for DiagnosticCode
impl<'de> Deserialize<'de> for DiagnosticCode
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>,
Source§impl Display for DiagnosticCode
impl Display for DiagnosticCode
Source§impl FromStr for DiagnosticCode
impl FromStr for DiagnosticCode
Source§impl Hash for DiagnosticCode
impl Hash for DiagnosticCode
Source§impl JsonSchema for DiagnosticCode
impl JsonSchema for DiagnosticCode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DiagnosticCode
impl PartialEq for DiagnosticCode
Source§impl Serialize for DiagnosticCode
impl Serialize for DiagnosticCode
impl Copy for DiagnosticCode
impl Eq for DiagnosticCode
impl StructuralPartialEq for DiagnosticCode
Auto Trait Implementations§
impl Freeze for DiagnosticCode
impl RefUnwindSafe for DiagnosticCode
impl Send for DiagnosticCode
impl Sync for DiagnosticCode
impl Unpin for DiagnosticCode
impl UnwindSafe for DiagnosticCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more