Enum ValidationError
enum ValidationError<'a>
Validation errors produced by [Node::validate].
Variants
-
InvalidChildType { parent: &'a AstNode<'a>, child: &'a AstNode<'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.
Implementations
impl<'a> Clone for ValidationError<'a>
fn clone(self: &Self) -> ValidationError<'a>
impl<'a> Debug for ValidationError<'a>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
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>
impl<T> Any for ValidationError<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ValidationError<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ValidationError<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ValidationError<'a>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ValidationError<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for ValidationError<'a>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for ValidationError<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ValidationError<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ValidationError<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>