Struct xml::reader::Error [] [src]

pub struct Error {
    // some fields omitted
}

An XML parsing error.

Consists of a 2D position in a document and a textual message describing the error.

Methods

impl Error

fn msg(&self) -> &str

Returns a reference to a message which is contained inside this error.

fn kind(&self) -> &ErrorKind

Trait Implementations

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

impl Position for Error

fn position(&self) -> TextPosition

impl Error for Error

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl<'a, P, M> From<(&'a P, M)> for Error where P: Position, M: Into<Cow<'static, str>>

fn from(orig: (&'a P, M)) -> Self

impl From<CharReadError> for Error

fn from(e: CharReadError) -> Self

impl From<Error> for Error

fn from(e: Error) -> Self

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for Error

impl PartialEq for Error

fn eq(&self, __arg_0: &Error) -> bool

fn ne(&self, __arg_0: &Error) -> bool

impl Clone for Error

fn clone(&self) -> Error

1.0.0fn clone_from(&mut self, source: &Self)