pub enum DiagnosticCode {
Show 24 variants
SyntaxError,
TypeNotFound,
MissingReturn,
ParamTypeNotMatch,
MissingParameter,
InjectFieldFail,
UnreachableCode,
Unused,
UndefinedGlobal,
Deprecated,
AccessInvisible,
DiscardReturns,
DisableGlobalDefine,
UndefinedField,
LocalConstReassign,
IterVariableReassign,
DuplicateType,
RedefinedLocal,
RedefinedLabel,
NameStyleCheck,
CodeStyleCheck,
NeedCheckNil,
AwaitInSync,
None,
}Variants§
SyntaxError
Syntax error
TypeNotFound
Type not found
MissingReturn
Missing return statement
ParamTypeNotMatch
Param Type not match
MissingParameter
Missing parameter
InjectFieldFail
Inject field fail
UnreachableCode
Unreachable code
Unused
Unused
UndefinedGlobal
Undefined global
Deprecated
Deprecated
AccessInvisible
Access invisible
DiscardReturns
Discard return value
DisableGlobalDefine
Disable global define
UndefinedField
Undefined field
LocalConstReassign
Local const reassign
IterVariableReassign
Iter variable reassign
DuplicateType
Duplicate type
RedefinedLocal
Redefined local
RedefinedLabel
Redefined label
NameStyleCheck
Name Style check
CodeStyleCheck
Code style check
NeedCheckNil
Need check nil
AwaitInSync
Await in sync
None
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticCode
impl Clone for DiagnosticCode
Source§fn clone(&self) -> DiagnosticCode
fn clone(&self) -> DiagnosticCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$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
Mutably borrows from an owned value. Read more
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
Compare self to
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>
Converts
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>
Converts
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