pub struct ParseResult {
pub node: Option<XmlNode>,
pub consumed: usize,
}Expand description
Result of parsing operation
Fields§
§node: Option<XmlNode>The parsed XML node (None if suppressed with - mark)
consumed: usizeNumber of characters consumed from input
Implementations§
Source§impl ParseResult
impl ParseResult
Sourcepub fn suppressed(consumed: usize) -> Self
pub fn suppressed(consumed: usize) -> Self
Create a result with no node (suppressed) but characters consumed
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnwindSafe for ParseResult
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