pub struct SyntaxParse { /* private fields */ }Expand description
The recoverable result of parsing one YAML source.
Implementations§
Source§impl SyntaxParse
impl SyntaxParse
Sourcepub const fn document(&self) -> &SyntaxDocument
pub const fn document(&self) -> &SyntaxDocument
Returns the loss-aware syntax document.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns all syntax diagnostics in source order.
Sourcepub fn into_parts(self) -> (SyntaxDocument, Vec<Diagnostic>)
pub fn into_parts(self) -> (SyntaxDocument, Vec<Diagnostic>)
Separates the document and diagnostics.
Trait Implementations§
Source§impl Clone for SyntaxParse
impl Clone for SyntaxParse
Source§fn clone(&self) -> SyntaxParse
fn clone(&self) -> SyntaxParse
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 SyntaxParse
impl Debug for SyntaxParse
impl Eq for SyntaxParse
Source§impl PartialEq for SyntaxParse
impl PartialEq for SyntaxParse
impl StructuralPartialEq for SyntaxParse
Auto Trait Implementations§
impl Freeze for SyntaxParse
impl RefUnwindSafe for SyntaxParse
impl Send for SyntaxParse
impl Sync for SyntaxParse
impl Unpin for SyntaxParse
impl UnsafeUnpin for SyntaxParse
impl UnwindSafe for SyntaxParse
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