#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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