#[repr(i32)]pub enum DiagnosticKind {
Show 70 variants
InvalidEscapeValue = 1_024,
UnexpectedEnd = 1_025,
UnallowedNumericSuffix = 1_026,
StringLiteralMustBeTerminatedBeforeLineBreak = 1_027,
Expecting = 1_028,
ExpectingIdentifier = 1_029,
ExpectingExpression = 1_030,
ExpectingXmlName = 1_031,
ExpectingXmlAttributeValue = 1_032,
IllegalNullishCoalescingLeftOperand = 1_033,
WrongParameterPosition = 1_034,
DuplicateRestParameter = 1_035,
NotAllowedHere = 1_036,
MalformedRestParameter = 1_037,
IllegalForInInitializer = 1_038,
MultipleForInBindings = 1_039,
UndefinedLabel = 1_040,
IllegalContinue = 1_041,
IllegalBreak = 1_042,
ExpressionMustNotFollowLineBreak = 1_043,
TokenMustNotFollowLineBreak = 1_044,
ExpectingStringLiteral = 1_045,
DuplicateAttribute = 1_046,
DuplicateAccessModifier = 1_047,
ExpectingDirectiveKeyword = 1_048,
UnallowedAttribute = 1_049,
UseDirectiveMustContainPublic = 1_050,
MalformedEnumMember = 1_051,
FunctionMayNotBeGenerator = 1_052,
FunctionMayNotBeAsynchronous = 1_053,
FunctionMustNotContainBody = 1_054,
FunctionMustContainBody = 1_055,
FunctionMustNotContainAnnotations = 1_056,
NestedClassesNotAllowed = 1_057,
UnexpectedDirective = 1_058,
FailedParsingAsdocTag = 1_059,
UnrecognizedAsdocTag = 1_060,
UnrecognizedProxy = 1_061,
EnumMembersMustBeConst = 1_062,
ConstructorMustNotSpecifyResultType = 1_063,
UnrecognizedMetadataSyntax = 1_064,
FailedToIncludeFile = 1_065,
ParentSourceIsNotAFile = 1_066,
CircularIncludeDirective = 1_067,
MalformedDestructuring = 1_068,
XmlPrefixNotDefined = 1_069,
RedefiningXmlAttribute = 1_070,
InvalidXmlPi = 1_071,
XmlPiUnknownAttribute = 1_072,
XmlPiVersion = 1_073,
XmlPiEncoding = 1_074,
XmlMustConsistOfExactly1Element = 1_075,
XmlNameAtMostOneColon = 1_076,
UnexpectedCharacter = 1_077,
InputEndedBeforeReachingClosingQuoteForString = 1_078,
InputEndedBeforeReachingClosingSeqForCData = 1_079,
InputEndedBeforeReachingClosingSeqForPi = 1_080,
InputEndedBeforeReachingClosingSeqForXmlComment = 1_081,
InputEndedBeforeReachingClosingSeqForMultiLineComment = 1_082,
InputEndedBeforeReachingClosingSlashForRegExp = 1_083,
InputEndedBeforeReachingClosingQuoteForAttributeValue = 1_084,
ExpectingEitherSemicolonOrNewLineHere = 1_085,
CssInvalidHexEscape = 1_086,
ExpectingDirective = 1_087,
ExpectingStatement = 1_088,
Unexpected = 1_089,
XmlClosingTagNameMustBeEquals = 1_090,
UnexpectedIncludeExtension = 1_091,
UnallowedExpression = 1_092,
ExpectingCssSelector = 1_093,
}
Variants§
InvalidEscapeValue = 1_024
UnexpectedEnd = 1_025
UnallowedNumericSuffix = 1_026
StringLiteralMustBeTerminatedBeforeLineBreak = 1_027
Expecting = 1_028
ExpectingIdentifier = 1_029
ExpectingExpression = 1_030
ExpectingXmlName = 1_031
ExpectingXmlAttributeValue = 1_032
IllegalNullishCoalescingLeftOperand = 1_033
WrongParameterPosition = 1_034
DuplicateRestParameter = 1_035
NotAllowedHere = 1_036
MalformedRestParameter = 1_037
IllegalForInInitializer = 1_038
MultipleForInBindings = 1_039
UndefinedLabel = 1_040
IllegalContinue = 1_041
IllegalBreak = 1_042
ExpressionMustNotFollowLineBreak = 1_043
TokenMustNotFollowLineBreak = 1_044
ExpectingStringLiteral = 1_045
DuplicateAttribute = 1_046
DuplicateAccessModifier = 1_047
ExpectingDirectiveKeyword = 1_048
UnallowedAttribute = 1_049
UseDirectiveMustContainPublic = 1_050
MalformedEnumMember = 1_051
FunctionMayNotBeGenerator = 1_052
FunctionMayNotBeAsynchronous = 1_053
FunctionMustNotContainBody = 1_054
FunctionMustContainBody = 1_055
FunctionMustNotContainAnnotations = 1_056
NestedClassesNotAllowed = 1_057
UnexpectedDirective = 1_058
FailedParsingAsdocTag = 1_059
UnrecognizedAsdocTag = 1_060
UnrecognizedProxy = 1_061
EnumMembersMustBeConst = 1_062
ConstructorMustNotSpecifyResultType = 1_063
UnrecognizedMetadataSyntax = 1_064
FailedToIncludeFile = 1_065
ParentSourceIsNotAFile = 1_066
CircularIncludeDirective = 1_067
MalformedDestructuring = 1_068
XmlPrefixNotDefined = 1_069
RedefiningXmlAttribute = 1_070
InvalidXmlPi = 1_071
XmlPiUnknownAttribute = 1_072
XmlPiVersion = 1_073
XmlPiEncoding = 1_074
XmlMustConsistOfExactly1Element = 1_075
XmlNameAtMostOneColon = 1_076
UnexpectedCharacter = 1_077
InputEndedBeforeReachingClosingQuoteForString = 1_078
InputEndedBeforeReachingClosingSeqForCData = 1_079
InputEndedBeforeReachingClosingSeqForPi = 1_080
InputEndedBeforeReachingClosingSeqForXmlComment = 1_081
InputEndedBeforeReachingClosingSeqForMultiLineComment = 1_082
InputEndedBeforeReachingClosingSlashForRegExp = 1_083
InputEndedBeforeReachingClosingQuoteForAttributeValue = 1_084
ExpectingEitherSemicolonOrNewLineHere = 1_085
CssInvalidHexEscape = 1_086
ExpectingDirective = 1_087
ExpectingStatement = 1_088
Unexpected = 1_089
XmlClosingTagNameMustBeEquals = 1_090
UnexpectedIncludeExtension = 1_091
UnallowedExpression = 1_092
ExpectingCssSelector = 1_093
Implementations§
Trait Implementations§
Source§impl Clone for DiagnosticKind
impl Clone for DiagnosticKind
Source§fn clone(&self) -> DiagnosticKind
fn clone(&self) -> DiagnosticKind
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for DiagnosticKind
impl PartialEq for DiagnosticKind
impl Copy for DiagnosticKind
impl Eq for DiagnosticKind
impl StructuralPartialEq for DiagnosticKind
Auto Trait Implementations§
impl Freeze for DiagnosticKind
impl RefUnwindSafe for DiagnosticKind
impl Send for DiagnosticKind
impl Sync for DiagnosticKind
impl Unpin for DiagnosticKind
impl UnwindSafe for DiagnosticKind
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.