Enum xmlparser::StreamError [−][src]
pub enum StreamError {
Show variants
UnexpectedEndOfStream,
InvalidName,
NonXmlChar(char, TextPos),
InvalidChar(u8, u8, TextPos),
InvalidCharMultiple(u8, &'static [u8], TextPos),
InvalidQuote(u8, TextPos),
InvalidSpace(u8, TextPos),
InvalidString(&'static str, TextPos),
InvalidReference,
InvalidExternalID,
InvalidCommentData,
InvalidCommentEnd,
InvalidCharacterData,
}Expand description
A stream parser errors.
Variants
The steam ended earlier than we expected.
Should only appear on invalid input data. Errors in a valid XML should be handled by errors below.
An invalid name.
A non-XML character has occurred.
Valid characters are: https://www.w3.org/TR/xml/#char32
An invalid/unexpected character.
The first byte is an actual one, the second one is expected.
We are using a single value to reduce the struct size.
InvalidCharMultiple(u8, &'static [u8], TextPos)An invalid/unexpected character.
Just like InvalidChar, but specifies multiple expected characters.
An unexpected character instead of " or '.
An unexpected character instead of an XML space.
Includes: ' ' \n \r \t   	 
 
.
An unexpected string.
Contains what string was expected.
An invalid reference.
An invalid ExternalID in the DTD.
Comment cannot contain --.
Comment cannot end with -.
A Character Data node contains an invalid data.
Currently, only ]]> is not allowed.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StreamErrorimpl Send for StreamErrorimpl Sync for StreamErrorimpl Unpin for StreamErrorimpl UnwindSafe for StreamErrorBlanket Implementations
Mutably borrows from an owned value. Read more