[][src]Enum orgize::OrgizeError

pub enum OrgizeError {
    Children {
        at: NodeId,
    },
    NoChildren {
        at: NodeId,
    },
    HeadlineOrSection {
        at: NodeId,
    },
    Title {
        at: NodeId,
    },
    Headline {
        at: NodeId,
    },
    Detached {
        at: NodeId,
    },
    HeadlineLevel {
        max: Option<usize>,
        min: Option<usize>,
        at: NodeId,
    },
}

Orgize Validation Error

Variants

Children

Expect this node has children

Fields of Children

at: NodeId
NoChildren

Expect this node has no children

Fields of NoChildren

at: NodeId
HeadlineOrSection

Expect this node contains a headline or section element

Fields of HeadlineOrSection

at: NodeId
Title

Expect this node contains a title element

Fields of Title

at: NodeId
Headline

Expect this node contains a headline element

Fields of Headline

at: NodeId
Detached

Expect a detached headline

Fields of Detached

at: NodeId
HeadlineLevel

Expect a headline where its level >= max and <= min

Fields of HeadlineLevel

max: Option<usize>min: Option<usize>at: NodeId

Methods

impl OrgizeError[src]

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

Trait Implementations

impl Debug for OrgizeError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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