Struct xml::common::Error [] [src]

pub struct Error {
    // some fields omitted
}

XML parsing error.

Consists of a position and a message.

Methods

impl Error

fn new<O: Position>(o: &O, msg: String) -> Error

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

fn msg<'a>(&'a self) -> &'a 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)