pub struct Parsed {
pub document: Document,
pub warnings: Vec<Diagnostic>,
}Expand description
The record of one parse: the Document and any non-fatal warnings.
Returned by Document::parse, the single parse entry. Warnings live here
and only here — Document is the value (equality, the storage DTO, and
mutators all exclude warnings); Parsed is the parse event. A caller that
wants only the document writes Document::parse(md)?.document.
Fields§
§document: Document§warnings: Vec<Diagnostic>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parsed
impl RefUnwindSafe for Parsed
impl Send for Parsed
impl Sync for Parsed
impl Unpin for Parsed
impl UnsafeUnpin for Parsed
impl UnwindSafe for Parsed
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