pub enum ValidationError {
ExpectedChildren {
at: NodeId,
},
UnexpectedChildren {
at: NodeId,
},
UnexpectedElement {
expected: &'static str,
at: NodeId,
},
ExpectedDetached {
at: NodeId,
},
HeadlineLevelMismatch {
range: RangeInclusive<usize>,
at: NodeId,
},
}Expand description
Validation Error
Variants§
ExpectedChildren
Expected at least one child
UnexpectedChildren
Expected no children
UnexpectedElement
ExpectedDetached
Expected a detached element
HeadlineLevelMismatch
Expected headline level in specify range
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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