Enum orgize::ValidationError[][src]

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

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

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.