Enum ValidationError
#[non_exhaustive]
pub enum ValidationError<'a>
Validation errors produced by [arena_tree::Node::validate].
Variants
-
InvalidChildType { parent: Node<'a>, child: Node<'a> } 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
impl<'a> Clone for ValidationError<'a>
fn clone(&self) -> Self
impl<'a> Debug for ValidationError<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result