pub enum ValidationError<'a> {
InvalidChildType {
parent: &'a AstNode<'a>,
child: &'a AstNode<'a>,
},
}Expand description
Validation errors produced by Node::validate.
Variants§
InvalidChildType
The type of a child node is not allowed in the parent node. This can happen when an inline node is found in a block container, a block is found in an inline node, etc.
Trait Implementations§
Source§impl<'a> Clone for ValidationError<'a>
impl<'a> Clone for ValidationError<'a>
Source§fn clone(&self) -> ValidationError<'a>
fn clone(&self) -> ValidationError<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ValidationError<'a>
impl<'a> !RefUnwindSafe for ValidationError<'a>
impl<'a> !Send for ValidationError<'a>
impl<'a> !Sync for ValidationError<'a>
impl<'a> Unpin for ValidationError<'a>
impl<'a> !UnwindSafe for ValidationError<'a>
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