pub struct ModelParse { /* private fields */ }Expand description
A recoverable typed-model parse result.
Implementations§
Source§impl ModelParse
impl ModelParse
Sourcepub const fn document(&self) -> Option<&ComposeDocument>
pub const fn document(&self) -> Option<&ComposeDocument>
Returns the typed document when the root could be interpreted.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns structural typed-model diagnostics in source order.
Sourcepub fn into_parts(self) -> (Option<ComposeDocument>, Vec<Diagnostic>)
pub fn into_parts(self) -> (Option<ComposeDocument>, Vec<Diagnostic>)
Separates the recovered document and diagnostics.
Trait Implementations§
Source§impl Clone for ModelParse
impl Clone for ModelParse
Source§fn clone(&self) -> ModelParse
fn clone(&self) -> ModelParse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelParse
impl Debug for ModelParse
impl Eq for ModelParse
Source§impl PartialEq for ModelParse
impl PartialEq for ModelParse
impl StructuralPartialEq for ModelParse
Auto Trait Implementations§
impl Freeze for ModelParse
impl RefUnwindSafe for ModelParse
impl Send for ModelParse
impl Sync for ModelParse
impl Unpin for ModelParse
impl UnsafeUnpin for ModelParse
impl UnwindSafe for ModelParse
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