Enum ValidationError

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) -> ValidationError<'a>

impl<'a> Debug for ValidationError<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ValidationError<'a>

impl<'a> !Send for ValidationError<'a>

impl<'a> !Sync for ValidationError<'a>

impl<'a> !UnwindSafe for ValidationError<'a>

impl<'a> Freeze for ValidationError<'a>

impl<'a> Unpin for ValidationError<'a>

impl<'a> UnsafeUnpin for ValidationError<'a>

Blanket Implementations

impl<T> Any for ValidationError<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ValidationError<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ValidationError<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ValidationError<'a> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ValidationError<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ValidationError<'a> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for ValidationError<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ValidationError<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ValidationError<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>