pub struct XmlParser { /* private fields */ }
Expand description
The main parser struct.
Implementations§
Source§impl<'a> XmlParser
impl<'a> XmlParser
Sourcepub fn file<P: AsRef<Path>>(
filepath: P,
) -> Result<Self, Box<dyn Error + 'static>>
pub fn file<P: AsRef<Path>>( filepath: P, ) -> Result<Self, Box<dyn Error + 'static>>
Initializes a XmlParser by reading the file into a buffer.
Sourcepub fn file_with_settings<P: AsRef<Path>>(
filepath: P,
settings: Settings,
) -> Result<Self, Box<dyn Error + 'static>>
pub fn file_with_settings<P: AsRef<Path>>( filepath: P, settings: Settings, ) -> Result<Self, Box<dyn Error + 'static>>
Same as above, but also takes another argument with Settings.
Sourcepub fn str(s: &str) -> Self
pub fn str(s: &str) -> Self
Initializes a XmlParser by convering the string slice to a vector of bytes.
Sourcepub fn str_with_settings(s: &str, settings: Settings) -> Self
pub fn str_with_settings(s: &str, settings: Settings) -> Self
Same as above, but also takes another argument with Settings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlParser
impl RefUnwindSafe for XmlParser
impl Send for XmlParser
impl Sync for XmlParser
impl Unpin for XmlParser
impl UnwindSafe for XmlParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more