pub struct Validation {
pub diagnostics: Vec<Diagnostic>,
pub graph: Option<Graph>,
}Expand description
Result of validate_text.
Fields§
§diagnostics: Vec<Diagnostic>Every finding, in document order.
graph: Option<Graph>The compiled graph, when there are no errors.
Implementations§
Source§impl Validation
impl Validation
pub fn has_errors(&self) -> bool
pub fn errors(&self) -> impl Iterator<Item = &Diagnostic>
pub fn warnings(&self) -> impl Iterator<Item = &Diagnostic>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Validation
impl !UnwindSafe for Validation
impl Forget for Validation
impl Freeze for Validation
impl Move for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnsafeUnpin for Validation
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