1 2 3 4 5 6 7 8 9
use std::io::Read; use crate::reader::ReaderError; pub trait FromXML { fn from_xml<R: Read>(reader: R) -> Result<Self, ReaderError> where Self: std::marker::Sized; }