pub trait XmlRead<'a>: Sized {
fn from_reader(reader: &mut XmlReader<'a>) -> XmlResult<Self>;
fn from_str(text: &'a str) -> XmlResult<Self> { ... }
}
pub trait XmlRead<'a>: Sized {
fn from_reader(reader: &mut XmlReader<'a>) -> XmlResult<Self>;
fn from_str(text: &'a str) -> XmlResult<Self> { ... }
}