pub struct PartialResult {
pub document: Option<Document>,
pub errors: Vec<ParseError>,
pub stopped_early: bool,
}Expand description
Result of partial parsing
Fields§
§document: Option<Document>Parsed document (if any)
errors: Vec<ParseError>All errors encountered during parsing
stopped_early: boolWhether parsing stopped early due to error limits
Implementations§
Source§impl PartialResult
impl PartialResult
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if parsing completed successfully without errors
Sourcepub fn into_result(self) -> Result<Document, Vec<ParseError>>
pub fn into_result(self) -> Result<Document, Vec<ParseError>>
Convert to Result type for simpler error handling
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartialResult
impl RefUnwindSafe for PartialResult
impl Send for PartialResult
impl Sync for PartialResult
impl Unpin for PartialResult
impl UnwindSafe for PartialResult
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