[][src]Enum orgize::ValidationError

pub enum ValidationError {
    ExpectedChildren {
        at: NodeId,
    },
    UnexpectedChildren {
        at: NodeId,
    },
    UnexpectedElement {
        expected: &'static str,
        at: NodeId,
    },
    ExpectedDetached {
        at: NodeId,
    },
    HeadlineLevelMismatch {
        range: RangeInclusive<usize>,
        at: NodeId,
    },
}

Validation Error

Variants

ExpectedChildren

Expected at least one child

Fields of ExpectedChildren

at: NodeId
UnexpectedChildren

Expected no children

Fields of UnexpectedChildren

at: NodeId
UnexpectedElement

Fields of UnexpectedElement

expected: &'static strat: NodeId
ExpectedDetached

Expected a detached element

Fields of ExpectedDetached

at: NodeId
HeadlineLevelMismatch

Expected headline level in specify range

Fields of HeadlineLevelMismatch

range: RangeInclusive<usize>at: NodeId

Implementations

impl ValidationError[src]

pub fn element<'a, 'b>(&self, org: &'a Org<'b>) -> &'a Element<'b>[src]

Trait Implementations

impl Debug for ValidationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.