pub enum ErrorKind {
Show 18 variants
SourceTooLong,
UnexpectedEof,
InvalidChar,
TabAsIndent,
ExpectedDocumentStart,
ExpectedDocumentEnd,
EmptyAnchorName,
InvalidTag,
InvalidBlockScalarHeader,
InvalidBlockScalarIndent,
UnterminatedFlowScalar,
UnexpectedFlowIndicator,
InvalidSimpleKey,
UnexpectedIndicator,
UnexpectedValue,
ExpectedNode,
DuplicatedNodeProperty,
UnexpectedToken(&'static str),
}Variants§
SourceTooLong
The source exceeds the maximum supported size (4 GiB).
UnexpectedEof
InvalidChar
A control character or other char that cannot appear in a YAML stream.
TabAsIndent
Tabs used for indentation.
ExpectedDocumentStart
Directives must be followed by a --- document start marker.
ExpectedDocumentEnd
Content found after a document where a new document or EOF was expected.
EmptyAnchorName
& or * with an empty name.
InvalidTag
Malformed ! tag property.
InvalidBlockScalarHeader
Malformed block scalar header (|/> + indicators).
InvalidBlockScalarIndent
A block scalar’s content line is indented less than its detected indentation.
UnterminatedFlowScalar
UnexpectedFlowIndicator
, [ ] { } misplaced in a flow collection.
InvalidSimpleKey
A simple key is too long or spans multiple lines.
UnexpectedIndicator
: or - or ? in a position where a block collection cannot start.
UnexpectedValue
Mapping value (:) in an invalid context.
ExpectedNode
A node was expected but something else was found.
DuplicatedNodeProperty
Two anchors or two tags on the same node, etc.
UnexpectedToken(&'static str)
Generic “unexpected token” during parsing.