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 new<O: Position, S: Into<Cow<'static, str>>>(o: &O, msg: S) -> Error[]

Creates a new error using position information from the provided Position object and a message.

fn msg(&self) -> &str[]

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

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

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

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

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